Listeners in DG environment

Can we have listener on primary set up as 'LISTENER_PRIM' and on the standby as 'LISTENER' for a data guard environment and if so how do we configure the data guard broker?

You said:
>
Say I have alias for listeners as 'LISTENER_DG' for HOST1 and 'LISTENER_DG' for HOST2 and I included these aliases on the hosts tnsnames file. But what should I include in the centralized tnsnames file in order to access the primary as well as standby databases?
>
That doesn't seem to make much sense. You don't specify listener names resp. aliases in the tnsnames.ora but ports. It is just irrelevant for the tnsnames.ora how you name your listener.
What do you want to achieve? Client connection to the proper Primary? Then look at this example:
http://uhesse.wordpress.com/2009/08/19/connect-time-failover-transparent-application-failover-for-data-guard/
You may notice that the listener.ora is not even shown because it's completely standard.
Kind regards
Uwe Hesse
http://uhesse.wordpress.com

Similar Messages

  • ORA-01034: Message 1034 not found; No message file for product=RDBMS

    Hi!
    After creating a RAC Database (10.2.0.5) on Redhat Enterprise Linux 64-bit, we checked: Listeners, Processes and Environment variables.
    Everything was set up properly and running.
    When trying to connect as sysdba the following message appeared:
    $sqlplus / as sysdba
    sql>select * from v$instance;
    select * from v$instance
    ERROR at line 1:
    ORA-01034: Message 1034 not found; No message file for product=RDBMS,
    facility=ORA
    A shutdown and startup did not help.
    What could be the issue here?
    Thanks!

    Here is an excerpt of the alert log. No ora-
    ALTER DATABASE OPEN
    Picked broadcast on commit scheme to generate SCNs
    Fri Feb 24 11:26:50 CET 2012
    LGWR: STARTING ARCH PROCESSES
    ARC0 started with pid=32, OS id=4930
    Fri Feb 24 11:26:50 CET 2012
    ARC0: Archival started
    ARC1: Archival started
    LGWR: STARTING ARCH PROCESSES COMPLETE
    ARC1 started with pid=33, OS id=4932
    Fri Feb 24 11:26:50 CET 2012
    SUCCESS: diskgroup LOG01 was mounted
    SUCCESS: diskgroup LOG02 was mounted
    Thread 1 opened at log sequence 10
      Current log# 11 seq# 10 mem# 0: +LOG01/omdemo/onlinelog/group_11.265.776085353
      Current log# 11 seq# 10 mem# 1: +LOG02/omdemo/onlinelog/group_11.265.776085353
    Successful open of redo thread 1
    Fri Feb 24 11:26:50 CET 2012
    ARC0: Becoming the 'no FAL' ARCH
    ARC0: Becoming the 'no SRL' ARCH
    Fri Feb 24 11:26:50 CET 2012
    ARC1: Becoming the heartbeat ARCH
    Fri Feb 24 11:26:50 CET 2012
    SMON: enabling cache recovery
    Fri Feb 24 11:26:50 CET 2012
    Successfully onlined Undo Tablespace 1.
    Fri Feb 24 11:26:50 CET 2012
    SMON: enabling tx recovery
    Fri Feb 24 11:26:50 CET 2012
    Database Characterset is WE8MSWIN1252
    replication_dependency_tracking turned off (no async multimaster replication found)
    Starting background process QMNC
    QMNC started with pid=34, OS id=4934
    Fri Feb 24 11:26:52 CET 2012
    Completed: ALTER DATABASE OPEN
    Sat Feb 25 02:00:23 CET 2012
    Thread 1 advanced to log sequence 11 (LGWR switch)
      Current log# 12 seq# 11 mem# 0: +LOG01/omdemo/onlinelog/group_12.266.776085355
      Current log# 12 seq# 11 mem# 1: +LOG02/omdemo/onlinelog/group_12.266.776085355$ps -ef|grep mon
    oracle    4694     1  0 Feb24 ?        00:00:10 /oracle/app/oracle/product/10.2.0/db_1/bin/racgimon startd OMDEMO
    oracle    4773     1  0 Feb24 ?        00:00:04 ora_pmon_OMDEMO1
    oracle    4779     1  0 Feb24 ?        00:00:03 ora_lmon_OMDEMO1
    oracle    4819     1  0 Feb24 ?        00:00:05 ora_smon_OMDEMO1
    oracle    4825     1  0 Feb24 ?        00:00:00 ora_mmon_OMDEMO1
    root     10429     1  0 Jan24 ?        03:29:11 /oracle/app/grid/11.2.0/grid/bin/osysmond.bin
    root     10475     1  0 Jan24 ?        00:01:44 /oracle/app/grid/11.2.0/grid/bin/cssdmonitor
    grid     11214     1  0 Jan24 ?        00:00:46 asm_pmon_+ASM1
    grid     11301     1  0 Jan24 ?        00:00:19 asm_lmon_+ASM1
    grid     11335     1  0 Jan24 ?        00:00:00 asm_smon_+ASM1
    grid     11343     1  0 Jan24 ?        00:00:00 asm_gmon_+ASM1
    grid     11347     1  0 Jan24 ?        00:00:00 asm_mmon_+ASM1
    dbus     11972     1  0 Jan17 ?        00:00:03 dbus-daemon --system
    xfs      14493     1  0 Jan17 ?        00:00:00 xfs -droppriv -daemon
    avahi    14594     1  0 Jan17 ?        00:00:00 avahi-daemon: running [at1srv0080.local]
    avahi    14595 14594  0 Jan17 ?        00:00:00 avahi-daemon: chroot helper
    root     14671     1  0 Jan17 ?        00:00:00 /usr/sbin/gdm-binary -nodaemon
    root     14736 14671  0 Jan17 ?        00:00:00 /usr/sbin/gdm-binary -nodaemon
    oracle   17059 12052  0 10:42 pts/1    00:00:00 grep mon
    [oracle@at1srv0080 /]$ sqlplus / as sysdba
    SQL*Plus: Release 10.2.0.5.0 - Production on Mon Feb 27 10:46:51 2012
    Copyright (c) 1982, 2010, Oracle.  All Rights Reserved.
    Connected to an idle instance.
    SQL> startup
    ORA-01078: failure in processing system parameters
    LRM-00109: could not open parameter file '/oracle/app/oracle/product/10.2.0/db_1/dbs/initOCTA1.ora'

  • Best Practice to configure tnsnames.ora on client of MAA environment in 10g

    Hi,
    I have a MAA environment, 1 RAC Primary of 2 nodes and 1 RAC standby of 2 nodes too. I want to configure the tnsnames.ora on clients (we have many clients on each PC) and I need to configure the tnsnames.
    I have read some papers but the information is not clear regarding to configure the tnsnames on clients. I just want to have only one entrie on tnsnames that I can use on clients to connect to RAC Primary and/or Standby depending on what site is primary in that moment, I was thinking in something like this:
    SALES.WORLD =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = site1a)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = site1b)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = site2a)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = site2b)(PORT = 1521))
    (LOAD_BALANCE = yes)
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = sales.world)
    (FAILOVER_MODE =
    (TYPE = SELECT)
    (METHOD = BASIC)
    (RETRIES = 180)
    (DELAY = 5)
    Where site1 is RAC Primary now, and site2 is standby. But in case of switchover, I want that clients recognize automatically to which site connect.
    I was thinking to stop listeners on site that is not primary on that moment.
    The question is if this is the best practice on this scenario?.
    Thanks for your advice.
    Luis

    Hi Louis,
    you need to setup a service with clusterware. On both sides: primary and standby.
    On primary you start them. On standby the services are also configured but stopped.
    In case of switchover or failover, data guard will notice clusterware to bring them up.
    You need to use this service name in your clients tnsnames.
    Another issue are TCP timeouts, to protect against them you use
    outbount_connect_timeout in your sqlnet.ora
    Also have a look at
    http://www.oracle.com/technology/deploy/availability/pdf/MAA_WP_10gR2_SwitchoverFailoverBestPractices.pdf
    HTH Mathias

  • Keep getting an error message that I need to download Java Runtime Environment

    I have a one year old iMac and just downloaded OS 10.10 (Yosemite).  Since doing this 2 weeks ago, I keep getting the same error message telling me that I need to download Java Runtime Environment in order for the webpage to run properly.  I have downloaded, installed and checked the installation 3x already.  The message goes away for a day or two and then returns.
    Any idea on what I have not done correctly or need to do further?
    Thanks for your he

    1. This procedure is a diagnostic test. It changes nothing, for better or worse, and therefore will not, in itself, solve the problem. But with the aid of the test results, the solution may take a few minutes, instead of hours or days.
    Don't be put off by the complexity of these instructions. The process is much less complicated than the description. You do harder tasks with the computer all the time.
    2. If you don't already have a current backup, back up all data before doing anything else. The backup is necessary on general principle, not because of anything in the test procedure. Backup is always a must, and when you're having any kind of trouble with the computer, you may be at higher than usual risk of losing data, whether you follow these instructions or not.
    There are ways to back up a computer that isn't fully functional. Ask if you need guidance.
    3. Below are instructions to run a UNIX shell script, a type of program. As I wrote above, it changes nothing. It doesn't send or receive any data on the network. All it does is to generate a human-readable report on the state of the computer. That report goes nowhere unless you choose to share it. If you prefer, you can act on it yourself without disclosing the contents to me or anyone else.
    You should be wondering whether you can believe me, and whether it's safe to run a program at the behest of a stranger. In general, no, it's not safe and I don't encourage it.
    In this case, however, there are a couple of ways for you to decide whether the program is safe without having to trust me. First, you can read it. Unlike an application that you download and click to run, it's transparent, so anyone with the necessary skill can verify what it does.
    You may not be able to understand the script yourself. But variations of the script have been posted on this website thousands of times over a period of years. The site is hosted by Apple, which does not allow it to be used to distribute harmful software. Any one of the millions of registered users could have read the script and raised the alarm if it was harmful. Then I would not be here now and you would not be reading this message.
    Nevertheless, if you can't satisfy yourself that these instructions are safe, don't follow them. Ask for other options.
    4. Here's a summary of what you need to do, if you choose to proceed:
    ☞ Copy a line of text in this window to the Clipboard.
    ☞ Paste into the window of another application.
    ☞ Wait for the test to run. It usually takes a few minutes.
    ☞ Paste the results, which will have been copied automatically, back into a reply on this page.
    The sequence is: copy, paste, wait, paste again. You don't need to copy a second time. Details follow.
    5. You may have started the computer in "safe" mode. Preferably, these steps should be taken in “normal” mode, under the conditions in which the problem is reproduced. If the system is now in safe mode and works well enough in normal mode to run the test, restart as usual. If you can only test in safe mode, do that.
    6. If you have more than one user, and the one affected by the problem is not an administrator, then please run the test twice: once while logged in as the affected user, and once as an administrator. The results may be different. The user that is created automatically on a new computer when you start it for the first time is an administrator. If you can't log in as an administrator, test as the affected user. Most personal Macs have only one user, and in that case this section doesn’t apply. Don't log in as root.
    7. The script is a single long line, all of which must be selected. You can accomplish this easily by triple-clicking anywhere in the line. The whole line will highlight, though you may not see all of it in the browser window, and you can then copy it. If you try to select the line by dragging across the part you can see, you won't get all of it.
    Triple-click anywhere in the line of text below on this page to select it:
    PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/libexec;clear;cd;p=(Software Hardware Memory Diagnostics Power FireWire Thunderbolt USB Fonts SerialATA 4 1000 25 5120 KiB/s 1024 85 \\b%% 20480 1 MB/s 25000 ports ' com.clark.\* \*dropbox \*genieo\* \*GoogleDr\* \*k.AutoCAD\* \*k.Maya\* vidinst\* ' DYLD_INSERT_LIBRARIES\ DYLD_LIBRARY_PATH -86 "` route -n get default|awk '/e:/{print $2}' `" 25 N\\/A down up 102400 25600 recvfrom sendto CFBundleIdentifier 25 25 25 1000 MB ' com.adobe.fpsaud com.apple.AirPortBaseStationAgent com.apple.installer.osmessagetracing ' ' 1274181950 464843899 1233118628 ' 51 5120 files );N5=${#p[@]};p[N5]=` networksetup -listnetworkserviceorder|awk ' NR>1 { sub(/^\([0-9]+\) /,"");n=$0;getline;} $NF=="'${p[26]}')" { sub(/.$/,"",$NF);print n;exit;} ' `;f=('\n%s: %s\n' '\n%s\n\n%s\n' '\nRAM details\n%s\n' %s\ %s '%s\n-\t%s\n' );S0() { echo ' { q=$NF+0;$NF="";u=$(NF-1);$(NF-1)="";gsub(/^ +| +$/,"");if(q>='${p[$1]}') printf("%s (UID %s) is using %s '${p[$2]}'",$0,u,q);} ';};s=(' s/[0-9A-Za-z._]+@[0-9A-Za-z.]+\.[0-9A-Za-z]{2,4}/EMAIL/g;/\/Shared/!s/(\/Users\/)[^ /]+/\1USER/g;s/[-0-9A-Fa-f]{22,}/UUID/g;' ' s/^ +//;/de: S|[nst]:/p;' ' {sub(/^ +/,"")};/er:/;/y:/&&$2<'${p[10]} ' 1s/://;3,6d;/[my].+:/d;s/^ {4}//;H;${ g;s/\n$//;/s: [^EO]|x([^08]|02[^F]|8[^0])/p;} ' ' 5h;6{ H;g;/P/!p;} ' ' ($1~/^Cy/&&$3>'${p[11]}')||($1~/^Cond/&&$2!~/^N/) ' ' /:$/{ N;/:.+:/d;s/ *://;b0'$'\n'' };/^ *(V.+ [0N]|Man).+ /{ s/ 0x.... //;s/[()]//g;s/(.+: )(.+)/ (\2)/;H;};$b0'$'\n'' d;:0'$'\n'' x;s/\n\n//;/Apple[ ,]|Genesy|Intel|SMSC/d;s/\n.*//;/\)$/p;' ' s/^.*C/C/;H;${ g;/No th|pms/!p;} ' '/= [^GO]/p' '{$1=""};1' ' /Of/!{ s/^.+is |\.//g;p;} ' ' $0&&!/ / { n++;print;} END { split("'"${p[41]}"'",b);for(i in b) print b[i];if(n<10) print "com.apple.";} ' ' $3~/[0-9]:[0-9]{2}$/ { gsub(/:[0-9:a-f]{14}/,"");} { print|"tail -n'${p[12]}'";} ' ' NR==2&&$4<='${p[13]}' { print $4;} ' ' END { $2/=256;if($2>='${p[15]}') print int($2) } ' ' NR!=13{next};{sub(/[+-]$/,"",$NF)};'"`S0 21 22`" 'NR!=2{next}'"`S0 37 17`" ' NR!=5||$8!~/[RW]/{next};{ $(NF-1)=$1;$NF=int($NF/10000000);for(i=1;i<=3;i++){$i="";$(NF-1-i)="";};};'"`S0 19 20`" 's:^:/:p' '/\.kext\/(Contents\/)?Info\.plist$/p' 's/^.{52}(.+) <.+/\1/p' ' /Launch[AD].+\.plist$/ { n++;print;} END { split("'"${p[41]}"'",b);for(i in b) print b[i]".plist";if(n<200) print "/System/";} ' '/\.xpc\/(Contents\/)?Info\.plist$/p' ' NR>1&&!/0x|\.[0-9]+$|com\.apple\.launchctl\.(Aqua|Background|System)$/ { print $3;} ' ' /\.(framew|lproj)|\):/d;/plist:|:.+(Mach|scrip)/s/:[^:]+//p ' '/^root$/p' ' !/\/Contents\/.+\/Contents|Applic|Autom|Frameworks/&&/Lib.+\/Info.plist$/ { n++;print;} END { if(n<1100) print "/System/";} ' '/^\/usr\/lib\/.+dylib$/p' ' /Temp|emac/{next};/(etc|Preferences|Launch[AD].+)\// { sub(".(/private)?","");n++;print;} END { split("'"${p[41]}"'",b);split("'"${p[42]}"'",c);for(i in b) print b[i]".plist\t"c[i];if(n<500) print "Launch";} ' ' /\/(Contents\/.+\/Contents|Frameworks)\/|\.wdgt\/.+\.([bw]|plu)/d;p;' 's/\/(Contents\/)?Info.plist$//;p' ' { gsub("^| |\n","\\|\\|kMDItem'${p[35]}'=");sub("^...."," ") };1 ' p '{print $3"\t"$1}' 's/\'$'\t''.+//p' 's/1/On/p' '/Prox.+: [^0]/p' '$2>'${p[43]}'{$2=$2-1;print}' ' BEGIN { i="'${p[26]}'";M1='${p[16]}';M2='${p[18]}';M3='${p[31]}';M4='${p[32]}';} !/^A/{next};/%/ { getline;if($5<M1) a="user "$2"%, system "$4"%";} /disk0/&&$4>M2 { b=$3" ops/s, "$4" blocks/s";} $2==i { if(c) { d=$3+$4+$5+$6;next;};if($4>M3||$6>M4) c=int($4/1024)" in, "int($6/1024)" out";} END { if(a) print "CPU: "a;if(b) print "I/O: "b;if(c) print "Net: "c" (KiB/s)";if(d) print "Net errors: "d" packets/s";} ' ' /r\[0\] /&&$NF!~/^1(0|72\.(1[6-9]|2[0-9]|3[0-1])|92\.168)\./ { print $NF;exit;} ' ' !/^T/ { printf "(static)";exit;} ' '/apsd|BKAg|OpenD/!s/:.+//p' ' (/k:/&&$3!~/(255\.){3}0/ )||(/v6:/&&$2!~/A/ ) ' ' $1~"lR"&&$2<='${p[25]}';$1~"li"&&$3!~"wpa2";' ' BEGIN { FS=":";p="uniq -c|sed -E '"'s/ +\\([0-9]+\\)\\(.+\\)/\\\2 x\\\1/;s/x1$//'"'";} { n=split($3,a,".");sub(/_2[01].+/,"",$3);print $2" "$3" "a[n]$1|p;b=b$1;} END { close(p);if(b) print("\n\t* Code injection");} ' ' NR!=4{next} {$NF/=10240} '"`S0 27 14`" ' END { if($3~/[0-9]/)print$3;} ' ' BEGIN { L='${p[36]}';} !/^[[:space:]]*(#.*)?$/ { l++;if(l<=L) f=f"\n   "$0;} END { F=FILENAME;if(!F) exit;if(!f) f="\n   [N/A]";"file -b "F|getline T;if(T!~/^(AS.+ (En.+ )?text$|(Bo|PO).+ sh.+ text ex)/) F=F" ("T")";printf("\nContents of %s\n%s\n",F,f);if(l>L) printf("\n   ...and %s more line(s)\n",l-L);} ' ' s/^ ?n...://p;s/^ ?p...:/-'$'\t''/p;' 's/0/Off/p' ' END{print NR} ' ' /id: N|te: Y/{i++} END{print i} ' ' / / { print "'"${p[28]}"'";exit;};1;' '/ en/!s/\.//p' ' NR!=13{next};{sub(/[+-M]$/,"",$NF)};'"`S0 39 40`" ' $10~/\(L/&&$9!~"localhost" { sub(/.+:/,"",$9);print $1": "$9;} ' '/^ +r/s/.+"(.+)".+/\1/p' 's/(.+\.wdgt)\/(Contents\/)?Info\.plist$/\1/p' 's/^.+\/(.+)\.wdgt$/\1/p' ' /l: /{ /DVD/d;s/.+: //;b0'$'\n'' };/s: /{ /V/d;s/^ */- /;H;};$b0'$'\n'' d;:0'$'\n'' x;/APPLE [^:]+$/d;p;' ' /^find: /d;p;' "`S0 44 45`" ' BEGIN{FS="= "} /Path/{print $2} ' ' /^ *$/d;s/^ */   /;' '/\./p' '/\.appex\/Contents\/Info\.plist$/p' );c1=(system_profiler pmset\ -g nvram fdesetup find syslog df vm_stat sar ps sudo\ crontab sudo\ iotop top pkgutil 'PlistBuddy 2>&1 -c "Print' whoami cksum kextstat launchctl sudo\ launchctl crontab 'sudo defaults read' stat lsbom mdfind ' for i in ${p[24]};do ${c1[18]} ${c2[27]} $i;done;' defaults\ read scutil sudo\ dtrace sudo\ profiles sed\ -En awk /S*/*/P*/*/*/C*/*/airport networksetup mdutil sudo\ lsof test osascript\ -e );c2=(com.apple.loginwindow\ LoginHook '" /L*/P*/loginw*' "'tell app \"System Events\" to get properties of login items'|tr , \\\n" 'L*/Ca*/com.ap*.Saf*/E*/* -d 1 -name In*t -exec '"${c1[14]}"' :CFBundleDisplayName" {} \;|sort|uniq' '~ $TMPDIR.. \( -flags +sappnd,schg,uappnd,uchg -o ! -user $UID -o ! -perm -600 \)' '.??* -path .Trash -prune -o -type d -name *.app -print -prune' :${p[35]}\" :Label\" '{/,}L*/{Con,Pref}* -type f ! -size 0 -name *.plist -exec plutil -s {} \;' "-f'%N: %l' Desktop L*/Keyc*" therm sysload boot-args status " -F '\$Time \$Message' -k Sender kernel -k Message Req 'bad |Beac|caug|corru|dead[^bl]|FAIL|fail|GPU |hfs: Ru|inval|jnl:|last value [1-9]|n Cause: -|NVDA\(|pagin|proc: t|Roamed|rror|ssert|Thrott|tim(ed? ?|ing )o|WARN' -k Message Rne 'Goog|ksadm|SMC:|suhel| VALI|ver-r|xpma' -o -k Sender fseventsd -k Message Req 'SL' " '-du -n DEV -n EDEV 1 10' 'acrx -o comm,ruid,%cpu' '-t1 10 1' '-f -pfc /var/db/r*/com.apple.*.{BS,Bas,Es,J,OSXU,Rem,up}*.bom' '{/,}L*/Lo*/Diag* -type f -regex .\*[cght] ! -name .?\* ! -name \*ag \( -exec grep -lq "^Thread c" {} \; -exec printf \* \; -o -true \) -execdir stat -f:%Sc:%N -t%F {} \;|sort -t: -k2 |tail -n'${p[38]} '/S*/*/Ca*/*xpc* >&- ||echo No' '-L /{S*/,}L*/StartupItems -type f -exec file {} +' '-L /S*/L*/{C*/Sec*A,Ex}* {/,}L*/{A*d,Ca*/*/Ex,Co{mpon,reM},Ex,In{p,ter},iTu*/*P,Keyb,Mail/B,Pr*P,Qu*T,Scripti,Sec,Servi,Spo,Widg}* -path \\*s/Resources -prune -o -type f -name Info.plist' '/usr/lib -type f -name *.dylib' `awk "${s[31]}"<<<${p[23]}` "/e*/{auto,{cron,fs}tab,hosts,{[lp],sy}*.conf,mach_i*/*,pam.d/*,ssh{,d}_config,*.local} {,/usr/local}/etc/periodic/*/* /L*/P*{,/*}/com.a*.{Bo,sec*.ap}*t {/S*/,/,}L*/Lau*/*t .launchd.conf" list getenv /Library/Preferences/com.apple.alf\ globalstate --proxy '-n get default' -I --dns -getdnsservers\ "${p[N5]}" -getinfo\ "${p[N5]}" -P -m\ / '' -n1 '-R -l1 -n1 -o prt -stats command,uid,prt' '--regexp --only-files --files com.apple.pkg.*|sort|uniq' -kl -l -s\ / '-R -l1 -n1 -o mem -stats command,uid,mem' '+c0 -i4TCP:0-1023' com.apple.dashboard\ layer-gadgets '-d /L*/Mana*/$USER&&echo On' '-app Safari WebKitDNSPrefetchingEnabled' "+c0 -l|awk '{print(\$1,\$3)}'|sort|uniq -c|sort -n|tail -1|awk '{print(\$2,\$3,\$1)}'" 'L*/P*/com.ap*.p*.ext*.*.*t -exec '"${c1[14]}"' :displayOrder" {} \;' );N1=${#c2[@]};for j in {0..9};do c2[N1+j]=SP${p[j]}DataType;done;N2=${#c2[@]};for j in 0 1;do c2[N2+j]="-n ' syscall::'${p[33+j]}':return { @out[execname,uid]=sum(arg0) } tick-10sec { trunc(@out,1);exit(0);} '";done;l=(Restricted\ files Hidden\ apps 'Elapsed time (s)' POST Battery Safari\ extensions Bad\ plists 'High file counts' User Heat System\ load boot\ args FileVault Diagnostic\ reports Log 'Free space (MiB)' 'Swap (MiB)' Activity 'CPU per process' Login\ hook 'I/O per process' Mach\ ports kexts Daemons Agents XPC\ cache Startup\ items Admin\ access Root\ access Bundles dylibs Apps Font\ issues Inserted\ dylibs Firewall Proxies DNS TCP/IP Wi-Fi Profiles Root\ crontab User\ crontab 'Global login items' 'User login items' Spotlight Memory Listeners Widgets Parental\ Controls Prefetching SATA Descriptors appexes );N3=${#l[@]};for i in 0 1 2;do l[N3+i]=${p[5+i]};done;N4=${#l[@]};for j in 0 1;do l[N4+j]="Current ${p[29+j]}stream data";done;A0() { id -G|grep -qw 80;v[1]=$?;((v[1]==0))&&sudo true;v[2]=$?;v[3]=`date +%s`;clear >&-;date '+Start time: %T %D%n';};for i in 0 1;do eval ' A'$((1+i))'() { v=` eval "${c1[$1]} ${c2[$2]}"|'${c1[30+i]}' "${s[$3]}" `;[[ "$v" ]];};A'$((3+i))'() { v=` while read i;do [[ "$i" ]]&&eval "${c1[$1]} ${c2[$2]}" \"$i\"|'${c1[30+i]}' "${s[$3]}";done<<<"${v[$4]}" `;[[ "$v" ]];};A'$((5+i))'() { v=` while read i;do '${c1[30+i]}' "${s[$1]}" "$i";done<<<"${v[$2]}" `;[[ "$v" ]];};';done;A7(){ v=$((`date +%s`-v[3]));};B2(){ v[$1]="$v";};for i in 0 1;do eval ' B'$i'() { v=;((v['$((i+1))']==0))||{ v=No;false;};};B'$((3+i))'() { v[$2]=`'${c1[30+i]}' "${s[$3]}"<<<"${v[$1]}"`;} ';done;B5(){ v[$1]="${v[$1]}"$'\n'"${v[$2]}";};B6() { v=` paste -d: <(printf "${v[$1]}") <(printf "${v[$2]}")|awk -F: ' {printf("'"${f[$3]}"'",$1,$2)} ' `;};B7(){ v=`grep -Fv "${v[$1]}"<<<"$v"`;};C0() { [[ "$v" ]]&&sed -E "$s"<<<"$v";};C1() { [[ "$v" ]]&&printf "${f[$1]}" "${l[$2]}" "$v"|sed -E "$s";};C2() { v=`echo $v`;[[ "$v" != 0 ]]&&C1 0 $1;};C3() { v=`sed -E "${s[63]}"<<<"$v"`&&C1 1 $1;};for i in 1 2;do for j in 0 2 3;do eval D$i$j'(){ A'$i' $1 $2 $3; C'$j' $4;};';done;done;{ A0;D20 0 $((N1+1)) 2;D10 0 $N1 1;B0;C2 27;B0&&! B1&&C2 28;D12 15 37 25 8;A1 0 $((N1+2)) 3;C0;D13 0 $((N1+3)) 4 3;D23 0 $((N1+4)) 5 4;D13 0 $((N1+9)) 59 50;for i in 0 1 2;do D13 0 $((N1+5+i)) 6 $((N3+i));done;D13 1 10 7 9;D13 1 11 8 10;D22 2 12 9 11;D12 3 13 10 12;D23 4 19 44 13;D23 5 14 12 14;D22 6 36 13 15;D22 7 37 14 16;D23 8 15 38 17;D22 9 16 16 18;B1&&{ D22 35 49 61 51;D22 11 17 17 20;for i in 0 1;do D22 28 $((N2+i)) 45 $((N4+i));done;};D22 12 44 54 45;D22 12 39 15 21;A1 13 40 18;B2 4;B3 4 0 19;A3 14 6 32 0;B4 0 5 11;A1 17 41 20;B7 5;C3 22;B4 4 6 21;A3 14 7 32 6;B4 0 7 11;B3 4 0 22;A3 14 6 32 0;B4 0 8 11;B5 7 8;B1&&{ A2 19 26 23;B7 7;C3 23;};A2 18 26 23;B7 7;C3 24;D13 4 21 24 26;B4 4 12 26;B3 4 13 27;A1 4 22 29;B7 12;B2 14;A4 14 6 52 14;B2 15;B6 14 15 4;B3 0 0 30;C3 29;A1 4 23 27;B7 13;C3 30;B3 4 0 65;A3 14 6 32 0;B4 0 16 11;A1 4 50 64;B7 16;C3 52;D13 24 24 32 31;D13 25 37 32 33;A2 23 18 28;B2 16;A2 16 25 33;B7 16;B3 0 0 34;B2 21;A6 47 21&&C0;B1&&{ D13 21 0 32 19;D13 10 42 32 40;D22 29 35 46 39;};D23 14 1 62 42;D12 34 43 53 44;D12 22 20 32 25;D22 0 $((N1+8)) 51 32;D13 4 8 41 6;D12 26 28 35 34;D13 27 29 36 35;A2 27 32 39&&{ B2 19;A2 33 33 40;B2 20;B6 19 20 3;};C2 36;D23 33 34 42 37;B1&&D23 35 45 55 46;D23 32 31 43 38;D12 36 47 32 48;D13 20 42 32 41;D13 37 2 48 43;D13 4 5 32 1;D13 4 3 60 5;D12 26 48 49 49;B3 4 22 57;A1 26 46 56;B7 22;B3 0 0 58;C3 47;D22 4 4 50 0;D23 22 9 37 7;A7;C2 2;} 2>/dev/null|pbcopy;exit 2>&-
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    8. Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Click anywhere in the Terminal window and paste by pressing command-V. The text you pasted should vanish immediately. If it doesn't, press the return key.
    9. If you see an error message in the Terminal window such as "Syntax error" or "Event not found," enter
    exec bash
    and press return. Then paste the script again.
    10. If you're logged in as an administrator, you'll be prompted for your login password. Nothing will be displayed when you type it. You will not see the usual dots in place of typed characters. Make sure caps lock is off. Type carefully and then press return. You may get a one-time warning to be careful. If you make three failed attempts to enter the password, the test will run anyway, but it will produce less information. In most cases, the difference is not important. If you don't know the password, or if you prefer not to enter it, press the key combination control-C or just press return  three times at the password prompt. Again, the script will still run.
    If you're not logged in as an administrator, you won't be prompted for a password. The test will still run. It just won't do anything that requires administrator privileges.
    11. The test may take a few minutes to run, depending on how many files you have and the speed of the computer. A computer that's abnormally slow may take longer to run the test. While it's running, there will be nothing in the Terminal window and no indication of progress. Wait for the line
    [Process completed]
    to appear. If you don't see it within half an hour or so, the test probably won't complete in a reasonable time. In that case, close the Terminal window and report what happened. No harm will be done.
    12. When the test is complete, quit Terminal. The results will have been copied to the Clipboard automatically. They are not shown in the Terminal window. Please don't copy anything from there. All you have to do is start a reply to this comment and then paste by pressing command-V again.
    At the top of the results, there will be a line that begins with the words "Start time." If you don't see that, but instead see a mass of gibberish, you didn't wait for the "Process completed" message to appear in the Terminal window. Please wait for it and try again.
    If any private information, such as your name or email address, appears in the results, anonymize it before posting. Usually that won't be necessary.
    13. When you post the results, you might see an error message on the web page: "You have included content in your post that is not permitted," or "You are not authorized to post." That's a bug in the forum software. Please post the test results on Pastebin, then post a link here to the page you created.
    14. This is a public forum, and others may give you advice based on the results of the test. They speak only for themselves, and I don't necessarily agree with them.
    Copyright © 2014 by Linc Davis. As the sole author of this work, I reserve all rights to it except as provided in the Use Agreement for the Apple Support Communities website ("ASC"). Readers of ASC may copy it for their own personal use. Neither the whole nor any part may be redistributed.

  • Configuring multiple listeners in a non-RAC env.

    Hi,
    Our database is being made as many as 35 requests per second by the application during peak hours. This is causing the listener to die. Metalink suggested to configure more listeners so that they can balance the load. When I tried to configure 2 listeners on the local server, one of the listeners are not working propoerly.
    I am posting the listenerr.ora and their statuses along with the error messages here. Can someone help me understand the problem?
    Listener.ora
    LISTENER2 =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = dbdev.website.com)(PORT = 1522))
    SID_LIST_LISTENER2 =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = TESTDB)
          (ORACLE_HOME = /u02/app/oracle)
          (PROGRAM = extproc)
    LISTENER1 =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = dbdev.website.com)(PORT = 1521))
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    SID_LIST_LISTENER1 =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = PLSExtProc)
          (ORACLE_HOME = /u02/app/oracle)
          (PROGRAM = extproc)
    lsnrctl status <listener_name>
    oracle@ DBDEV $ lsnrctl status LISTENER1
    LSNRCTL for Linux: Version 10.2.0.3.0 - Production on 02-AUG-2009 20:08:03
    Copyright (c) 1991, 2006, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=dbdev.website.com)(PORT=1521)))
    STATUS of the LISTENER
    Alias                     LISTENER1
    Version                   TNSLSNR for Linux: Version 10.2.0.3.0 - Production
    Start Date                29-JUL-2009 22:28:31
    Uptime                    3 days 21 hr. 39 min. 32 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /u02/app/oracle/network/admin/listener.ora
    Listener Log File         /u02/app/oracle/network/log/arogya1.log
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=dbdev.website.com)(PORT=1521)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC0)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
      Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "TESTDB" has 1 instance(s).
      Instance "TESTDB", status READY, has 1 handler(s) for this service...
    Service "TESTDB_XPT" has 1 instance(s).
      Instance "TESTDB", status READY, has 1 handler(s) for this service...
    The command completed successfully
    oracle@ DBDEV$ lsnrctl status LISTENER2
    LSNRCTL for Linux: Version 10.2.0.3.0 - Production on 02-AUG-2009 20:08:07
    Copyright (c) 1991, 2006, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=dbdev.website.com)(PORT=1522)))
    STATUS of the LISTENER
    Alias                     LISTENER2
    Version                   TNSLSNR for Linux: Version 10.2.0.3.0 - Production
    Start Date                31-JUL-2009 02:37:10
    Uptime                    2 days 17 hr. 30 min. 56 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /u02/app/oracle/network/admin/listener.ora
    Listener Log File         /u02/app/oracle/network/log/arogya2.log
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=dbdev.website.com)(PORT=1522)))
    Services Summary...
    Service "TESTDB" has 1 instance(s).
      Instance "TESTDB", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    ps -ef | grep tnslsnr
    oracle@ DBDEV $ ps -ef | grep tnslsnr
    oracle    7951     1  0 Jul29 ?        00:00:00 /u02/app/oracle/bin/tnslsnr LISTENER1 -inherit
    oracle   18080     1  0 Jul31 ?        00:00:00 /u02/app/oracle/bin/tnslsnr LISTENER2 -inherit
    Client message
    C:\Oracle\product\10.1.0\Client_1\BIN>sqlplus system/manager@asridb1
    SQL*Plus: Release 10.1.0.2.0 - Production on Mon Aug 3 09:32:18 2009
    Copyright (c) 1982, 2004, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL>
    SQL> Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
    With the Partitioning, OLAP and Data Mining options
    C:\Oracle\product\10.1.0\Client_1\BIN>sqlplus system/manager@asridb2
    SQL*Plus: Release 10.1.0.2.0 - Production on Mon Aug 3 09:32:25 2009
    Copyright (c) 1982, 2004, Oracle.  All rights reserved.
    ERROR:
    ORA-28547: connection to server failed, probable Net8 admin error
    Enter user-name:Thanks,
    Aswin.

    ice_cold_aswin wrote:
    But shared server is not always better than a dedicated server.I did not say it was - only that if you're expecting loads of brand new connection requests to be services fast by the Listener, then shared server will be significantly faster than dedicated server.
    Frequency of connections may be handled better by the use of shared server, but how about holding thousands and thousands of connections and serving all their requests by using some preemptive mechanism? Many years ago, I configured an Oracle 8i instance on my desktop PC with shared server and told the Java guys to try their worst. See how many threads they can open against my desktop PC instance versus the big HP server instance. The latter was using dedicated server and they were kind of thinking that this was somehow better than shared server. They could open less than a few hundred connections to the big server. They opened over a 1000 connections to my desktop instance.
    Shared  Server is and never was a poor and second choice to Dedicated Server as some seems to suggest. It is extremely capable and ideally suited when dealing with a huge number of connections.
    In our application, number of connections would reach thousands during peak hours and large number of REALLY BIG queries would be fired by each of them in a small time period. I would say these BIG QUERIES can be termed as OLAP queries, while our main stream application is a OLTP system. It must be apparent to you by now, our database (non-RAC) is supporting an application that gives OLAP and OLTP queries at a very high frequency. A big query ito what? Resource footprint? Source code size of the query? Execution time of the query?
    If you have 100's of OLAP type queries (complex and long running queries) hitting the server every few seconds, then your server will die. Unless you are running some seriously expensive hardware.
    That aside - it is only a sensible approach to use shared server in an environment that deals with 1000's of OLTP type connections. And if there is an OLAP mix too, then configure those connections to request dedicated server connections.
    Why? The shared server scales a lot better than dedicated server. And scalability is what you want in this type of environment.

  • Error using wldeploy in unix environment

    I am trying to use wldeploy ant task to deploy and undeploy applications from my server in a unix environment, and keep getting errors there, and not locally on a XP development workstation. Below are my buildfile and the error that I am getting. Anyone have any ideas as to what may be wrong?
    build.xml
    <target name="undeploy" description="Undeploys app">
    <wldeploy user="${user}" password="${password}"
    adminurl="${adminurl}" remote="true"
         action="stop" name="${appname}" debug="true"
    verbose="true"/>
    </target>
    And here is the error:
    [wldeploy] weblogic.Deployer -debug -remote -verbose -noexit -name ${appname} -adminurl iiop://${host}:${port} -user ${user} -password ${password} -stop
    [wldeploy] weblogic.Deployer invoked with options: -debug -remote -verbose -noexit -name broker-co
    ntact.ear -adminurl iiop://${host}:${port} -user ${user} -stop
    [wldeploy] [WebLogicDeploymentManagerImpl.<init>():103] : Constructing DeploymentManager for J2EE v
    ersion V1_4 deployments
    [wldeploy] [WebLogicDeploymentManagerImpl.getNewConnection():146] : Connecting to admin server at a
    lice.healthpartners.com:8001, as user system
    [wldeploy] [ServerConnectionImpl.getEnvironment():288] : setting environment
    [wldeploy] [Debug.say():43] : getting context using iiop://alice.healthpartners.com:8001
    [wldeploy] [Debug.say():43] : Connecting to MBeanServer at service:jmx:iiop://${host}:${port}/jndi/weblogic.management.mbeanservers.domainruntime
    [wldeploy] java.io.IOException
    [wldeploy] at weblogic.management.remote.common.ClientProviderBase.makeConnection(ClientProvide
    rBase.java:135)
    [wldeploy] at weblogic.management.remote.common.ClientProviderBase.newJMXConnector(ClientProvid
    erBase.java:79)
    [wldeploy] at javax.management.remote.JMXConnectorFactory.newJMXConnector(JMXConnectorFactory.j
    ava:341)
    [wldeploy] at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:262)
    [wldeploy] at weblogic.deploy.api.spi.deploy.internal.ServerConnectionImpl.getMBeanServer(Serve
    rConnectionImpl.java:240)
    [wldeploy] at weblogic.deploy.api.spi.deploy.internal.ServerConnectionImpl.getMBeanServerForTyp
    e(ServerConnectionImpl.java:191)
    [wldeploy] at weblogic.deploy.api.spi.deploy.internal.ServerConnectionImpl.init(ServerConnectio
    nImpl.java:147)
    [wldeploy] at weblogic.deploy.api.spi.deploy.WebLogicDeploymentManagerImpl.getNewConnection(Web
    LogicDeploymentManagerImpl.java:148)
    [wldeploy] at weblogic.deploy.api.spi.deploy.WebLogicDeploymentManagerImpl.<init>(WebLogicDeplo
    ymentManagerImpl.java:118)
    [wldeploy] at weblogic.deploy.api.spi.factories.internal.DeploymentFactoryImpl.getDeploymentMan
    ager(DeploymentFactoryImpl.java:84)
    [wldeploy] at weblogic.deploy.api.tools.SessionHelper.getDeploymentManager(SessionHelper.java:4
    32)
    [wldeploy] at weblogic.deploy.api.tools.deployer.Jsr88Operation.connect(Jsr88Operation.java:302
    [wldeploy] at weblogic.deploy.api.tools.deployer.Deployer.perform(Deployer.java:137)
    [wldeploy] at weblogic.deploy.api.tools.deployer.Deployer.runBody(Deployer.java:88)
    [wldeploy] at weblogic.utils.compiler.Tool.run(Tool.java:158)
    [wldeploy] at weblogic.utils.compiler.Tool.run(Tool.java:115)
    [wldeploy] at weblogic.Deployer.run(Deployer.java:70)
    [wldeploy] at weblogic.Deployer.mainWithExceptions(Deployer.java:62)
    [wldeploy] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [wldeploy] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
    [wldeploy] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java
    :43)
    [wldeploy] at java.lang.reflect.Method.invoke(Method.java:615)
    [wldeploy] at weblogic.ant.taskdefs.management.WLDeploy.invokeMain(WLDeploy.java:419)
    [wldeploy] at weblogic.ant.taskdefs.management.WLDeploy.execute(WLDeploy.java:349)
    [wldeploy] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [wldeploy] at org.apache.tools.ant.Task.perform(Task.java:364)
    [wldeploy] at org.apache.tools.ant.Target.execute(Target.java:341)
    [wldeploy] at org.apache.tools.ant.Target.performTasks(Target.java:369)
    [wldeploy] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    [wldeploy] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
    [wldeploy] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:4
    0)
    [wldeploy] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
    [wldeploy] at org.apache.tools.ant.Main.runBuild(Main.java:668)
    [wldeploy] at org.apache.tools.ant.Main.startAnt(Main.java:187)
    [wldeploy] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
    [wldeploy] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
    [wldeploy] Caused by: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
    [wldeploy] java.io.EOFException]
    [wldeploy] at weblogic.jrmp.Context.lookup(Context.java:189)
    [wldeploy] at weblogic.jrmp.Context.lookup(Context.java:195)
    [wldeploy] at javax.naming.InitialContext.lookup(InitialContext.java:363)
    [wldeploy] at weblogic.management.remote.common.ClientProviderBase.makeConnection(ClientProvide
    rBase.java:126)
    [wldeploy] ... 35 more
    [wldeploy] Caused by: java.rmi.ConnectIOException: error during JRMP connection establishment; nest
    ed exception is:
    [wldeploy] java.io.EOFException
    [wldeploy] at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:293)
    [wldeploy] at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:190)
    [wldeploy] at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:321)
    [wldeploy] at weblogic.jrmp.BaseRemoteRef.invoke(BaseRemoteRef.java:221)
    [wldeploy] at weblogic.jrmp.RegistryImpl_Stub.lookup(Unknown Source)
    [wldeploy] at weblogic.jrmp.Context.lookup(Context.java:185)
    [wldeploy] ... 38 more
    [wldeploy] Caused by: java.io.EOFException
    [wldeploy] at java.io.DataInputStream.readByte(DataInputStream.java:269)
    [wldeploy] at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:234)
    [wldeploy] ... 43 more
    [wldeploy] [Debug.say():43] : Closing DM connection
    [wldeploy] [Debug.say():43] : Unregistered all listeners
    [wldeploy] weblogic.deploy.api.tools.deployer.DeployerException: Unable to connect to 'iiop://${host}:${port}': null. Ensure the url represents a running admin server and that the crede
    ntials are correct. If using http protocol, tunneling must be enabled on the admin server.
    Thanks.
    Scott

    Hi Richard,
    I had the same issue using Eclipse. I just tried to run the
    ant script outside of Eclipse and it worked fine.
    This is an Eclipse-Ant Class Loader issue.
    In order to make it work in Eclipse, You have to :
    1. Open the External Tool Run Configuration.
    2. Select your Ant script.
    3. Select JRE Tab.
    4. In Runtime JRE section, choose Seperate JRE.
    Hope this helps !
    Eric

  • Question about multiple listeners and vip addresses in rac.

    We have a 2 node rac cluster running 10.2.0.3 on rhel4 on the itanium platform. We have a need where we want to connect the 2 hosts up to another network temporarily by configuring an additional network interface on each server so that we can test some connections from a different network.
    My question is can you configure multiple listeners on the same server in which the newly added listener can be configured to service requets on the new network interface?
    Because it's rac would you need to configure an additional vip address? I am not sure that you can have multiple vip's on a server?
    Has anyone configured rac in such a way, any help is appreciated.

    can you configure multiple listeners on the same server in which the newly added listener can be configured to service requets on the new network interface?Yes, you can but you should not be doing this. Listener is a node specific resource and one listener can server multiple services. You actually can create multiple services within the database for different set of users and all can be registered to the same listener.
    Because it's rac would you need to configure an additional vip address? What do you mean by additional IP?
    You have installed 10g RAC where you have already configured virtual IPs. Why do you want to have additional one? node1 - static ip1, vip1, pvtip1
    node2 - static ip2 vip2, pvtip2
    total 6
    I am not sure that you can have multiple vip's on a server?Nothing to do with the server, they are based on public IP. Yes you can create multiples vip's based on same public IP. This is possible, But you do not need to do this in RAC environment.

  • Forms 9i on Linux 9 in Development Environment

    I installed Oracle DB 9.0.2 and 9iDS 9.0.2 on a Linux 9 (Kernel 2.4.20-6)Server. I can run listeners (HTTP, OC4J, etc.) without any problem and then connect through a Linux Client (another Computer) to the server and access the database. I created the form through the client.
    The problem that I have is the following. "When I try to run the form as a developer, I get the 'servlet not found error." As far as I know, the environment is set correctly to see the forms.
    First, I heard that "the forms cannot be tested without 9iAS installed in the middle tier." Then, I found out, "I can test a form in a development environment without installing 9iAS."
    I have been checking for any kind of documentation in the net stating "how to set up the developer environment."
    Is there anyone, who has experience in this area and can give me a hand to set up environment for development?

    Hello,
    Isn't there anybody who knows the answer to this question? Not even a tech at Oracle? Surprising?

  • ADF Controller in non-jdeveloper environment

    Hello,
    I have been using adf faces in eclipse environment with the JSF Controller (faces-config.xml). I need now to implement use case with adf task flows and for this purpose I need to configure the adf controller to be used (adfc-config.xml). I copied the adf-config.xml file from a corresponding jdev project, and also the weblogic-application.xml and web.xml fils, but this changes do not have any effect. Does anyone know if there are any other configurations needed to get the adf controller working?
    Thanks

    One of mine weblogic-appliction.xml from inside the EAR looks like
      <?xml version="1.0" encoding="windows-1252" ?>
    - <weblogic-application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/ns/weblogic/weblogic-application.xsd" xmlns="http://www.bea.com/ns/weblogic/weblogic-application">
    - <xml>
    - <parser-factory>
      <saxparser-factory>oracle.xml.jaxp.JXSAXParserFactory</saxparser-factory>
      <document-builder-factory>oracle.xml.jaxp.JXDocumentBuilderFactory</document-builder-factory>
      <transformer-factory>oracle.xml.jaxp.JXSAXTransformerFactory</transformer-factory>
      </parser-factory>
      </xml>
    - <application-param>
      <param-name>jps.credstore.migration</param-name>
      <param-value>OVERWRITE</param-value>
      </application-param>
    - <application-param>
      <param-name>jps.policystore.migration</param-name>
      <param-value>MERGE</param-value>
      </application-param>
    - <listener>
      <listener-class>oracle.adf.share.weblogic.listeners.ADFApplicationLifecycleListener</listener-class>
      </listener>
    - <listener>
      <listener-class>oracle.mds.lcm.weblogic.WLLifecycleListener</listener-class>
      </listener>
    - <listener>
      <listener-class>oracle.security.jps.wls.listeners.JpsApplicationLifecycleListener</listener-class>
      </listener>
    - <listener>
      <listener-class>oracle.security.jps.wls.listeners.JpsAppVersionLifecycleListener</listener-class>
      </listener>
    - <library-ref>
      <library-name>adf.oracle.domain</library-name>
      <implementation-version>11.1.1.1.0</implementation-version>
      </library-ref>
    - <library-ref>
      <library-name>oracle.jsp.next</library-name>
      </library-ref>
      </weblogic-application>so it's a bit different. If I look into the weblogic-appliction.xml file in jdev it look like the one you posted. Build one EAR from jdev and one from eclipse, unpack both into different folders (unpack the WAR too) and run a diff over the two folders.
    Timo

  • Org.flexunit.listeners.UIListener not found, and other problems

    I have a basic setup of FlexUnit that comes with the latest FlashBulider. I import a bunch of SWC's in my project and try to follow instructions from here:
    http://docs.flexunit.org/index.php?title=Setting_up_a_FlexUnit_4_Project
    I got an error saying defintion of UIListener could not be found.
    Then I checked the AS docs here: http://docs.flexunit.org/asdocs/index.html
    And found out there is no UIListener class at all
    So I realized that core.addListener takes IRunListener, and change the code to this:
    core.addListener(IRunListener(uiListener));
    Sadly, when run. there was a runtime error with this line:
    <flexui:TestRunnerBase id="uiListener" width="100%" height="100%" x="0" y="0" />
    Saying TestRunnerBase does not implement the IRunListener intarface,

    The UIListener is not in the core project, it is in the UIListener project, so unless you have that one as well, you will not have the UIListener.
    My guess though is that it is a TestRunnerBase issue. TestRunnerBase isn't something we wrote for FlexUnit 4. It is an adaption of a FlexUnit 1 concept to give people a familiar environment as a default test runner. The goal is to eventually write a new one for FlexUnit 4 but our priorities were features and IDE integration.
    All of that said, I am guessing the flexui namespace in your project is pointing to an older version of the TestRunnerBase buried somewhere in the FlexUnit .9 project. We include FlexUnit .9 in its entirety for compatibility reasons, but it means that you can sometimes reference older classes. The appropriate namespace should be:
    http://www.adobe.com/2009/flexUnitUIRunner
    If that doesn't work, then you are missing the FlexUnit4UIListener.swc and your namespace is probably set differently. Here is another thread on this same issue:
    http://forums.adobe.com/message/2252570#2252570
    When configured correctly, your MXML file should read something like this:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application
    xmlns:mx="http://www.adobe.com/2006/mxml"
    creationComplete="runMe()" xmlns:adobe="http://www.adobe.com/2009/flexUnitUIRunner">
      <mx:Script>
          <![CDATA[
            import org.flexunit.listeners.UIListener;
            import compilationSuite.SuitesToRun;
            import org.flexunit.runner.FlexUnitCore;
            private var core:FlexUnitCore;
            public function runMe():void {
              core = new FlexUnitCore();
              core.addListener( uiListener );
              core.run( compilationSuite.SuitesToRun );
        ]]>
      </mx:Script>
      <adobe:TestRunnerBase id="uiListener" width="100%" height="100%"  />
    </mx:Application>
    I will give the wiki page you reference a read today and see if I can make things clearer,
    Mike

  • B1 Development Environment

    Hey Guys,
    I was just wondering if anyone else has downloaded and used any part of this application from SAP: https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/1fe00c0a-0701-0010-1e9d-a15e73bddeba.
    I just found this link today and I was curious if anyone else has used the code generators or install programs that come with this download.
    Thanks.

    Hi all,
    Thanks a lot for your comments!
    Nevertheless, can you please add them into the WebLog I pointed before?
    /people/mariatrinidad.martinezgea/blog/2005/10/25/business-one-development-environment
    We should not use the Business One forum for comments on this wizards.
    Only 2 comments:
    1. Regarding the possibility to continue working once the wizard is finish: You have the possibility to add new components and listeners from .NET by doing "Add New Item" on the project(please have a look to the Help File of B1DE).
    2. To desing forms we have the Screen Painter. Once you have designed it you can upload it from the Wizard and show it from a menu for example.
    Thanks again for giving us your feeback into the Weblog: /people/mariatrinidad.martinezgea/blog/2005/10/25/business-one-development-environment
    Regards
    Trinidad.

  • Multiple listeners/ports

    Hi All,
    I'm fairly new to Apache, but have managed to install and configure our test listener with no problem. I do have a few questions regarding future configuration though. Any info would be greatly appreciated:
    1.) I currently have one listener up and running on port 7777 for our test database which will use only mod_plsql. Eventually I will need 5 listeners. Each listener will have its own port number, document root, etc. Question is what changes do I make to httpd.conf to enable a second listener on port 8888 for our stage database? Whenever a request comes in on this port number it needs to serve out the document root and homepage for the stage database, not the test database.
    2.) Is their any way to control each of the listeners independently. I would be nice to be able to take only the test listener down while leaving the others up.
    TIA,
    Charlene Yanke, DBA
    Southern Alberta Institute or Technology

    There are several different configs that I can think of but the one for you really depends on all of your requirements.
    You can use one Oracle home. Then you would put a <virtualhost> section in your httpd.conf file for each of your environments listening on a different port. You can specify the different documentroot within the virtualhost container.
    You are using mod pl/sql though. Because these are virtual hosts, you can access any DAD configured in this Oracle Home from any of the virtual hosts. In other words:
    http://test:7777/pls/app/
    http://prod:8888/pls/app/
    This would load the same DAD regardless of the virtual host.
    If you want to use the same DAD name like in the above example but actually use different connection information, you can do this one of two ways. One way, which I explored a few months ago and found a bug, is to use mod_rewrite. Because you are on Unix, I wouldn't do this. I would install another Oracle home. When you start the other apache process, make sure the environment variable for the WV_GATEWAY_CFG is pointing to a different file than your test one. This way, you can have:
    http://test:7777/pls/app/
    http://prod:8888/pls/app/
    For test, it would use the test wdbsvr.app file (which is the config file for the DAD) and for your production environment, it would a different wdbsvr.app file. This way, you have the same DAD name used in each Oracle home but behind the scenes, the test DAD would connect to your test instance or schema and your production DAD would connect to your production instance or schema.
    In Windows, I had a very hard time configuring multiple Oracle Homes and specifying different wdbsvr.app files because it is set as an environment variable. I even tried to launch each service as a different user and specify the WV_GATEWAY_CFG setting at the user level but that didn't work either. In Unix, it shouldn't be such a big deal.

  • Error opening environment

    Hello,
    I have an application in Java that I deploy in Glassfish 3. The database is Berkeley DB XML.
    The application is used by several clients, so I have one environment for each client.
    When I deploy the application I run this code to each client, to open every environment.
    public class BdbxmlManager {
        //+++++++++++++++++++++++++++MAIN VARS++++++++++++++++++++++++++++++++++++++
        public String ENVIRONMENT_PATH = "";
        public static String LOGS_PATH_NAME = "";
        //public String ENVIRONMENT_LOGS_PATH = "";
        protected EnvironmentConfig ENVIRONMENT_CONFIG = null;
        protected Environment ENVIRONMENT = null;
        protected static XmlContainerConfig xmlContainerConfig = null;
        protected static XmlManagerConfig xmlManagerConfig = null;
        protected static SequenceConfig sequenceConfig = null;
        protected static DatabaseConfig sequenceDatabaseConfig = null;
        //protected static TransactionConfig transactionConfig = null;
        protected XmlContainer XML_CONTAINER = null;
        protected XmlContainer XML_CONTAINER_LOGS = null;
        protected XmlContainer XML_CONTAINER_ERROR_LOGS = null;
        protected XmlContainer XML_CONTAINER_MESSAGE = null;
        protected Database SEQUENCE_DATABASE = null;
        protected XmlManager XML_MANAGER = null;
        //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
        public static String SEQUENCE_DB_NAME = "";
        public static String SEQUENCE_DB_FILE_NAME = "";
        public static String CONTAINER_NAME = "";
        public static String MAIN_DOCUMENT_NAME = "";
        public static String MAIN_DOCUMENT_INITIAL_CONTENT = "";
        public static String CONTAINER_MESSAGE = "";
        public static String CONTAINER_NAME_LOGS = "";
        public static boolean USING_LOGS_DOCUMENT = false;
        public static String LOGS_DOCUMENT_NAME = "";
        public static String LOGS_DOCUMENT_INITIAL_CONTENT = "";
        public static String CONTAINER_NAME_ERROR_LOGS = "";
        public static boolean USING_ERROR_LOGS_DOCUMENT = false;
        public static String ERROR_LOGS_DOCUMENT_NAME = "";
        public static String ERROR_LOGS_DOCUMENT_INITIAL_CONTENT = "";
        public static int MAX_LOG_BUFFER_SIZE = 50 * 1024 * 1024;
        public static int MAX_CACHE_SIZE = 5 * 1024 * 1024;
         * max num of simultaneous active transactions
        public static int MAX_ACTIVE_TXNS = 10000;
        //---------------------DEFAULT ENVIRONMENT CONFIGURATION VALUES---------------------------------
        public static boolean RUN_RECOVERY_BY_DEFAULT = true;
        public static int CACHE_SIZE_BY_DEFAULT = 5 * 1024 * 1024;
        public static int MAX_ACTIVE_TXNS_BY_DEFAULT = 5000;
        public static int LOG_BUFFER_SIZE_BY_DEFAULT = 50 * 1024 * 1024;
        public static boolean ENVIRONMENT_LOG_IN_MEMORY = false;
        public static boolean ENVIRONMENT_LOG_AUTO_REMOVE = true;
        public static int ENVIRONMENT_LOG_REGION_SIZE = 3 * 1024 * 1024;
        public static boolean ENVIRONMENT_TRANSACTIONAL = true;
        public static boolean ENVIRONMENT_THREADED = true;
        public static int ENVIRONMENT_TXN_MAX_ACTIVE = 5000;
        public static int DEFAULT_MAX_LOCKS = 15000;//2000;
        public static int DEFAULT_MAX_LOCKERS = 15000;//2000;
        public static int DEFAULT_MAX_LOCK_OBJECTS = 15000;//2000;
        //--------------------SEQUENCE CONFIGURATION VALUES-------------------
        public static boolean ALLOW_CREATE_SEQUENCE_CONFIG = true;
        public static int SEQUENCE_CACHE_SIZE = 0;
        public static boolean DECREMENT_SEQUENCE_CONFIG = false;
        public static int SEQUENCE_MIN_VALUE = 0;
        public static int SEQUENCE_MAX_VALUE = 99999999;
        public static int SEQUENCE_INITIAL_VALUE = 0;
        public static boolean EXCLUSIVE_CREATE_SEQUENCE_CONFIG = false;
        public static boolean WRAP_SEQUENCE_CONFIG = false;
        //----------------------------------------------------------------------ç
        //--------------------XMLMANAGER CONFIGURATION VALUES-------------------
        public static boolean XML_MANAGER_LOG_ENABLED = false;
        public static int XML_MANAGER_LOG_LEVEL = XmlManager.LEVEL_ERROR;
        public static int XML_MANAGER_LOG_CATEGORY = XmlManager.CATEGORY_MANAGER;
        //--------------------XMLCONTAINER CONFIGURATION VALUES-------------------
        public static boolean XML_CONTAINER_INDEX_NODES_AND_STATISTICS_ENABLED = true;
        public static boolean XML_CONTAINER_ALLOW_VALIDATION = false;
        //--------------------SEQUENCE DATABASE CONFIGURATION VALUES-------------------
        public static boolean ALLOW_CREATE_SEQUENCE_DATABASE_CONFIG = true;
        public static boolean TRANSACTIONAL_SEQUENCE_DATABASE_CONFIG = true;
         *  Constructor
        public BdbxmlManager(String ENVIRONMENT_PATH_NAME) throws DatabaseException, FileNotFoundException, IOException, DbxmlException {
            this.ENVIRONMENT_PATH = ENVIRONMENT_PATH_NAME;
            //this.ENVIRONMENT_LOGS_PATH = ENVIRONMENT_LOGS_PATH_NAME;
            init(ENVIRONMENT_PATH);
            initXmlManager();
            initSequenceDataBase();
            //Container message
            File containerMessage = new File(ENVIRONMENT_PATH, CONTAINER_MESSAGE);
            System.out.println("pruebas");
            System.out.println("check container messsage "+containerMessage.getCanonicalPath());
            try{
                System.out.println("try");
                if (XML_MANAGER.existsContainer(containerMessage.getCanonicalPath()) != 0) {
                    System.out.println("try1");
                    System.out.println("Opening the container message: " + containerMessage + ".....");
                    XML_CONTAINER_MESSAGE = XML_MANAGER.openContainer(containerMessage.getCanonicalPath(), xmlContainerConfig);
                    //System.out.println("Container is transactional: " + XML_CONTAINER.getContainerConfig().getTransactional());
                    XML_CONTAINER_MESSAGE.setAutoIndexing(false);
                    System.out.println("Container message opened!");
                } else {
                    System.out.println("try2");
                    System.out.println("error open container");
                    throw new DbxmlException(DbxmlException.CONTAINER_DOES_NOT_EXIST);
            }catch(Exception e){
                System.out.println("EXCEPCION "+e.toString());
            //Container data
            File containerFile = new File(ENVIRONMENT_PATH, CONTAINER_NAME);
            System.out.println("check container "+containerFile.getCanonicalPath());
            if (XML_MANAGER.existsContainer(containerFile.getCanonicalPath()) != 0) {
                System.out.println("Opening the container: " + containerFile + ".....");
                XML_CONTAINER = XML_MANAGER.openContainer(containerFile.getCanonicalPath(), xmlContainerConfig);
                //System.out.println("Container is transactional: " + XML_CONTAINER.getContainerConfig().getTransactional());
                XML_CONTAINER.setAutoIndexing(false);
                System.out.println("Container opened!");
                try {
                    XmlDocument tempDoc = XML_CONTAINER.getDocument(MAIN_DOCUMENT_NAME);
                    //System.out.println("tempDoc no es nulo: " + tempDoc == null);
                } catch (XmlException e) {
                    if (e.getErrorCode() == XmlException.DOCUMENT_NOT_FOUND) {
                        //System.out.println("El documento " + MAIN_DOCUMENT_NAME + " no existe");
                        //System.out.println("Añadiendo documento....");
                        XML_CONTAINER.putDocument(MAIN_DOCUMENT_NAME, MAIN_DOCUMENT_INITIAL_CONTENT);
            } else {
                throw new DbxmlException(DbxmlException.CONTAINER_DOES_NOT_EXIST);
            //Container logs
            File containerFileLogs = new File(ENVIRONMENT_PATH, CONTAINER_NAME_LOGS);
            System.out.println("check container "+containerFileLogs.getCanonicalPath());
            if (XML_MANAGER.existsContainer(containerFileLogs.getCanonicalPath()) != 0) {
                System.out.println("Opening the container: " + containerFileLogs + ".....");
                XML_CONTAINER_LOGS = XML_MANAGER.openContainer(containerFileLogs.getCanonicalPath(), xmlContainerConfig);
                //System.out.println("Container is transactional: " + XML_CONTAINER.getContainerConfig().getTransactional());
                XML_CONTAINER_LOGS.setAutoIndexing(false);
                System.out.println("Container opened!");
                //---------------------------LOGS DOCUMENT INITIALIZATION----------------------------------
                try {
                    XML_CONTAINER_LOGS.getDocument(LOGS_DOCUMENT_NAME);
                    //System.out.println("logsDoc no es nulo: " + logsDoc == null);
                } catch (XmlException e) {
                    if (e.getErrorCode() == XmlException.DOCUMENT_NOT_FOUND) {
                        //System.out.println("El documento " + LOGS_DOCUMENT_NAME + " no existe");
                        //System.out.println("Añadiendo documento....");
                        XML_CONTAINER_LOGS.putDocument(LOGS_DOCUMENT_NAME, LOGS_DOCUMENT_INITIAL_CONTENT);
            } else {
                throw new DbxmlException(DbxmlException.CONTAINER_DOES_NOT_EXIST);
            //Container error logs
            File containerFileErrorLogs = new File(ENVIRONMENT_PATH, CONTAINER_NAME_ERROR_LOGS);
            System.out.println("check container "+containerFileErrorLogs.getCanonicalPath());
            if (XML_MANAGER.existsContainer(containerFileErrorLogs.getCanonicalPath()) != 0) {
                System.out.println("Opening the container: " + containerFileErrorLogs + ".....");
                XML_CONTAINER_ERROR_LOGS = XML_MANAGER.openContainer(containerFileErrorLogs.getCanonicalPath(), xmlContainerConfig);
                //System.out.println("Container is transactional: " + XML_CONTAINER.getContainerConfig().getTransactional());
                XML_CONTAINER_ERROR_LOGS.setAutoIndexing(false);
                System.out.println("Container opened!");
                //----------------------ERROR LOGS DOCUMENT INITIALIZATION----------------------------------
                try {
                    XML_CONTAINER_ERROR_LOGS.getDocument(ERROR_LOGS_DOCUMENT_NAME);
                    //System.out.println("errorLogsDoc no es nulo: " + errorLogsDoc == null);
                } catch (XmlException e) {
                    if (e.getErrorCode() == XmlException.DOCUMENT_NOT_FOUND) {
                        //System.out.println("El documento " + ERROR_LOGS_DOCUMENT_NAME + " no existe");
                        //System.out.println("Añadiendo documento....");
                        XML_CONTAINER_ERROR_LOGS.putDocument(ERROR_LOGS_DOCUMENT_NAME, ERROR_LOGS_DOCUMENT_INITIAL_CONTENT);
            } else {
                throw new DbxmlException(DbxmlException.CONTAINER_DOES_NOT_EXIST);
         *  Init XmlManager
        protected void initXmlManager() throws XmlException
            if(XML_MANAGER == null){
                //---------XmlManager----------------
                //System.out.println("Creating the XmlManager.....");
                XML_MANAGER = new XmlManager(ENVIRONMENT, xmlManagerConfig);
                XmlManager.setLogLevel(XML_MANAGER_LOG_LEVEL, XML_MANAGER_LOG_ENABLED);
                XmlManager.setLogCategory(XML_MANAGER_LOG_CATEGORY, XML_MANAGER_LOG_ENABLED);
                //System.out.println("XmlManager created!");
         *  Init Database
        protected void initSequenceDataBase() throws DatabaseException, FileNotFoundException
            if(SEQUENCE_DATABASE == null)
                //---------Sequence Database------------------
                //System.out.println("Creating/opening the sequence database....");
                SEQUENCE_DATABASE = ENVIRONMENT.openDatabase(null, SEQUENCE_DB_NAME, SEQUENCE_DB_FILE_NAME, sequenceDatabaseConfig);
                //System.out.println("Sequence database opened/created!!");
         *  Configure BdbxmlManager
        protected synchronized void init(String ENVIRONMENT_PATH_NAME) {
            if (ENVIRONMENT_CONFIG == null) {
                System.out.println("new config en");
                ENVIRONMENT_CONFIG = initEnvironmentConfiguration();
                System.out.println("run "+ENVIRONMENT_CONFIG.getRunRecovery());
            if (ENVIRONMENT == null) {
                System.out.println("nuevo envi");
                ENVIRONMENT = initEnvironment(ENVIRONMENT_PATH_NAME);
            if (xmlContainerConfig == null) {
                xmlContainerConfig = initXmlContainerConfiguration();
            if (xmlManagerConfig == null) {
                xmlManagerConfig = initXmlManagerConfiguration();
            if (sequenceConfig == null) {
                sequenceConfig = initSequenceConfiguration();
            if (sequenceDatabaseConfig == null) {
                sequenceDatabaseConfig = initSequenceDatabaseConfig();
         *  INIT ENVIRONMENT CONFIGURATION
        protected static EnvironmentConfig initEnvironmentConfiguration() {
            //System.out.println("Initializing environment configuration....");
            EnvironmentConfig environmentConfig = new EnvironmentConfig();
            environmentConfig.setErrorStream(System.err);
            // If the environment does not exists, create it
            environmentConfig.setAllowCreate(true);
            // Turn on the shared memory region
            environmentConfig.setInitializeCache(true);
            // Turn on the locking subsystem
            environmentConfig.setInitializeRegions(true);
            environmentConfig.setInitializeLocking(true);
            // Turn on the logging subsystem
            environmentConfig.setInitializeLogging(true);
            //environmentConfig.setThreaded(ENVIRONMENT_THREADED);
            environmentConfig.setMaxMutexes(30000);//1000000);//10000);
            environmentConfig.setMutexIncrement(30000);//1000000);//10000);
            environmentConfig.setMaxLockers(DEFAULT_MAX_LOCKERS);
            environmentConfig.setMaxLocks(DEFAULT_MAX_LOCKS);
            environmentConfig.setMaxLockObjects(DEFAULT_MAX_LOCK_OBJECTS);
            //----------------------Cache configuration--------------------
            //environmentConfig.setCacheCount(1);
            environmentConfig.setCacheMax(MAX_CACHE_SIZE);
            environmentConfig.setCacheSize(CACHE_SIZE_BY_DEFAULT);
            //----------------------Logging configuration--------------------
            environmentConfig.setLogRegionSize(ENVIRONMENT_LOG_REGION_SIZE);
            environmentConfig.setLogBufferSize(LOG_BUFFER_SIZE_BY_DEFAULT);
            environmentConfig.setLogDirectory(new File(LOGS_PATH_NAME));
            environmentConfig.setLogInMemory(ENVIRONMENT_LOG_IN_MEMORY);
            environmentConfig.setLogAutoRemove(ENVIRONMENT_LOG_AUTO_REMOVE);
            //----------------------Transactions configuration--------------------
            //Turn on the transactional subsystem
            environmentConfig.setTransactional(ENVIRONMENT_TRANSACTIONAL);
            environmentConfig.setTxnMaxActive(ENVIRONMENT_TXN_MAX_ACTIVE);
            //environmentConfig.setTxnNoSync(false);
            //environmentConfig.setTxnNotDurable(false);
            //environmentConfig.setTxnSnapshot(true);
            //environmentConfig.setTxnWriteNoSync(false);
            //-------------------Run recovery configuration-------------
            environmentConfig.setRunRecovery(RUN_RECOVERY_BY_DEFAULT);
            System.out.println("EnvironmentConfig initialized! run "+environmentConfig.getRunRecovery());
            return environmentConfig;
         *  INIT ENVIRONMENT
        protected Environment initEnvironment(String ENVIRONMENT_PATH_NAME) {
            Environment env = null;
            //---------Environment--------------
            //System.out.println("Creating the environment....");
            try {
                System.out.println("start ");
                System.out.println("run recovery "+ENVIRONMENT_CONFIG.getRunRecovery());
                //ENVIRONMENT_CONFIG.setRunRecovery(true);
                System.out.println("run recovery "+ENVIRONMENT_CONFIG.getRunRecovery());
                env = new Environment(new File(ENVIRONMENT_PATH_NAME), ENVIRONMENT_CONFIG);
            } catch (DatabaseException ex) {
                Logger.getLogger(BdbxmlManager.class.getName()).log(Level.SEVERE, null, ex);
            } catch (FileNotFoundException ex) {
                Logger.getLogger(BdbxmlManager.class.getName()).log(Level.SEVERE, null, ex);
            } catch (Exception ex) {
                Logger.getLogger(BdbxmlManager.class.getName()).log(Level.SEVERE, null, ex);
            return env;
         *  CONFIGURE CONTAINER
        protected static XmlContainerConfig initXmlContainerConfiguration() {
            //System.out.println("Initializing XmlContainer configuration....");
            XmlContainerConfig config = new XmlContainerConfig();
            config.setContainerType(XmlContainer.NodeContainer);
            config.setTransactional(ENVIRONMENT_TRANSACTIONAL);
            if(XML_CONTAINER_INDEX_NODES_AND_STATISTICS_ENABLED)
                config.setIndexNodes(XmlContainerConfig.On);
                config.setStatisticsEnabled(XmlContainerConfig.On);
            }else
                config.setIndexNodes(XmlContainerConfig.Off);
                config.setStatisticsEnabled(XmlContainerConfig.Off);
            config.setAllowValidation(XML_CONTAINER_ALLOW_VALIDATION);
            //System.out.println("XmlContainer configuration initialized!");
            return config;
         *  INIT XML MANAGER CONFIGURATION
        protected static XmlManagerConfig initXmlManagerConfiguration() {
            //System.out.println("Initializing XmlManager configuration....");
            XmlManagerConfig config = new XmlManagerConfig();
            config.setAdoptEnvironment(false);
            config.setAllowAutoOpen(true);
            config.setAllowExternalAccess(true);
            //System.out.println("XmlManager configuration initialized!");
            return config;
         *  INIT SEQUENCE CONFIGURATION
        protected SequenceConfig initSequenceConfiguration() {
            //System.out.println("Initializing Sequence configuration....");
            SequenceConfig config = new SequenceConfig();
            config.setAllowCreate(ALLOW_CREATE_SEQUENCE_CONFIG);
            config.setCacheSize(SEQUENCE_CACHE_SIZE);
            config.setDecrement(DECREMENT_SEQUENCE_CONFIG);
            config.setRange(SEQUENCE_MIN_VALUE, SEQUENCE_MAX_VALUE);
            config.setInitialValue(SEQUENCE_INITIAL_VALUE);
            config.setExclusiveCreate(EXCLUSIVE_CREATE_SEQUENCE_CONFIG);
            config.setWrap(WRAP_SEQUENCE_CONFIG);
            //System.out.println("Sequence configuration initialized!");
            return config;
         *  INIT SEQUENCE DATABASE CONFIG
        protected DatabaseConfig initSequenceDatabaseConfig() {
            DatabaseConfig config = new DatabaseConfig();
            config.setAllowCreate(ALLOW_CREATE_SEQUENCE_DATABASE_CONFIG);
            config.setTransactional(TRANSACTIONAL_SEQUENCE_DATABASE_CONFIG);
            config.setType(DatabaseType.BTREE);
            return config;
         * Creates a new Xml transaction
         * @return
         * @throws XmlException
        public XmlTransaction createTransaction() throws XmlException {
            XmlTransaction xmlTransaction = XML_MANAGER.createTransaction();
            return xmlTransaction;
        public XmlResults executeQuery(XmlTransaction transaction, DbxmlQuery query,
                boolean commitTransaction) throws XmlException, DbxmlException {
            XmlQueryExpression queryExpression = query.getXmlQueryExpression();
            if (queryExpression.isUpdateExpression()) {
                throw new DbxmlException(DbxmlException.UPDATE_ATTEMPTED_IN_READ_QUERY);
            } else {
                XmlResults results = null;
                try {
                    if (transaction != null) {
                        results = queryExpression.execute(transaction, query.getXmlQueryContext());
                        if (commitTransaction) {
                            transaction.commit();
                    } else {
                        results = queryExpression.execute(query.getXmlQueryContext());
                } catch (Exception e) {
                    e.printStackTrace();
                    //Aborting the transaction since there was an exception and it
                    //could not be committed
                    if (transaction != null) {
                        //System.out.println("Aborting the transaction due to underlying exception... ");
                        transaction.abort();
                        //System.out.println("Transaction aborted :(");
                    if (results != null) {
                        //System.out.println("Deleting the XmlResults due to aborting the transaction...");
                        results.delete();
                        //System.out.println("XmlResults deleted :(");
                    if (queryExpression != null) {
                        //System.out.println("Deleting the QueryExpression due to aborting the transaction...");
                        queryExpression.delete();
                        //System.out.println("Query expression deleted :(");
                return results;
        public XmlResults executeUpdateQuery(XmlTransaction transaction, DbxmlQuery query,
                boolean commitTransaction) throws XmlException, DbxmlException {
            XmlQueryExpression queryExpression = query.getXmlQueryExpression();
            if (!queryExpression.isUpdateExpression()) {
                throw new DbxmlException(DbxmlException.UPDATE_QUERY_EXPECTED);
            } else {
                XmlResults results = null;
                try {
                    BasicMonitor.getMonitor().getLock();
                    if (transaction != null) {
                        results = queryExpression.execute(transaction, query.getXmlQueryContext());
                        if (commitTransaction) {
                            transaction.commit();
                    } else {
                        results = queryExpression.execute(query.getXmlQueryContext());
                } catch (Exception e) {
                    e.printStackTrace();
                    //Aborting the transaction since there was an exception and it
                    //could not be committed
                    if (transaction != null) {
                        //System.out.println("Aborting the transaction due to underlying exception... ");
                        transaction.abort();
                        //System.out.println("Transaction aborted :(");
                    if (results != null) {
                        //System.out.println("Deleting the XmlResults due to aborting the transaction...");
                        results.delete();
                        //System.out.println("XmlResults deleted :(");
                    if (queryExpression != null) {
                        //System.out.println("Deleting the QueryExpression due to aborting the transaction...");
                        queryExpression.delete();
                        //System.out.println("Query expression deleted :(");
                } finally {
                    BasicMonitor.getMonitor().releaseLock();
                return results;
         * Closes all resources associated to this manager
        public synchronized void close() {
            //xmlContainer.close();
            if(XML_MANAGER != null)
            {   try {
                    closeSequenceDataBase();
                    closeXmlContainer();
                    //System.out.println("Closing XML_MANAGER...");
                    XML_MANAGER.close();
                    //System.out.println("XML_MANAGER closed! :)");
                } catch (Exception e) {
                    e.printStackTrace();
         * Get the XmlManager
        public XmlManager getXmlManager() {
            return XML_MANAGER;
         * Get the Database
        public Database getDatabase() {
            return SEQUENCE_DATABASE;
         * Return the SequenceConfig
        public SequenceConfig getSequenceConfig() {
            return sequenceConfig;
         * Close the DataBase
        private synchronized void closeSequenceDataBase() {
            if (SEQUENCE_DATABASE != null) {
                try {
                    //System.out.println("Closing the sequence database...");
                    SEQUENCE_DATABASE.close(false);
                    //System.out.println("Sequence database closed! :)");
                } catch (DatabaseException ex) {
                    //System.out.println("There was a problem closing the sequence database... :(");
                    Logger.getLogger(BdbxmlManager.class.getName()).log(Level.SEVERE, null, ex);
         * Close the XmlContainer
        private synchronized void closeXmlContainer() {
            if (XML_CONTAINER != null) {
                try {
                    System.out.println("Closing the XmlContainer....");
                    XML_CONTAINER.close();
                    //System.out.println("XmlContainer closed! :)");
                } catch (Exception ex) {
                    //System.out.println("There was a problem closing the XmlContainer... :(");
                    Logger.getLogger(BdbxmlManager.class.getName()).log(Level.SEVERE, null, ex);
            if (XML_CONTAINER_LOGS != null) {
                try {
                    System.out.println("Closing the XmlContainer....");
                    XML_CONTAINER_LOGS.close();
                    //System.out.println("XmlContainer closed! :)");
                } catch (Exception ex) {
                    //System.out.println("There was a problem closing the XmlContainer... :(");
                    Logger.getLogger(BdbxmlManager.class.getName()).log(Level.SEVERE, null, ex);
            if (XML_CONTAINER_ERROR_LOGS != null) {
                try {
                    System.out.println("Closing the XmlContainer....");
                    XML_CONTAINER_ERROR_LOGS.close();
                    //System.out.println("XmlContainer closed! :)");
                } catch (Exception ex) {
                    //System.out.println("There was a problem closing the XmlContainer... :(");
                    Logger.getLogger(BdbxmlManager.class.getName()).log(Level.SEVERE, null, ex);
            if (XML_CONTAINER_MESSAGE != null) {
                try {
                    System.out.println("Closing the message XmlContainer....");
                    XML_CONTAINER_MESSAGE.close();
                    //System.out.println("XmlContainer closed! :)");
                } catch (Exception ex) {
                    //System.out.println("There was a problem closing the XmlContainer... :(");
                    Logger.getLogger(BdbxmlManager.class.getName()).log(Level.SEVERE, null, ex);
         * Close the Environment
        public synchronized void closeEnvironment() {
            if (ENVIRONMENT != null) {
                try {
                    System.out.println("Closing the environment....");
                    System.out.println("Closing the environment....");
                    ENVIRONMENT.close();
                    System.out.println("Environment closed! :)");
                    //singleton = null;
                } catch (IllegalArgumentException ex) {
                    System.out.println("There was IllegalArgumentException");
                    System.out.println("There was a problem closing the environment... :( "+ex.toString());
                    Logger.getLogger(BdbxmlManager.class.getName()).log(Level.SEVERE, null, ex);
                } catch (DatabaseException ex) {
                    //System.out.println("There was a problem closing the environment... :(");
                    Logger.getLogger(BdbxmlManager.class.getName()).log(Level.SEVERE, null, ex);
                } catch (Exception ex) {
                    System.out.println("There was general problem "+ex.toString());
                    Logger.getLogger(BdbxmlManager.class.getName()).log(Level.SEVERE, null, ex);
    }

    I continue the message before....
    After using the application for many days, the application failed and it hangs. The glassfish went down.
    So when I deploy the appllication again it stops in the line and I get no exception or error.
    if (XML_MANAGER.existsContainer(containerMessage.getCanonicalPath()) != 0) {Then I started to debug the code and I realize that when I open the environment in this line:
    env = new Environment(new File(ENVIRONMENT_PATH_NAME), ENVIRONMENT_CONFIG);then configuration of ENVIRONMENT_CONFIG.getRunRecovery() was set to false.
    So then I changed the settings and I set ENVIRONMENT_CONFIG.setRunRecovery(true).
    After that I deployed the application again and I got this errors:
    +[#|2011-03-04T15:05:27.900+0000|SEVERE|glassfishv3.0|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=11;_ThreadName=Thread-1;|Log+
    sequence error: page LSN 12 3990397; previous LSN 13 675423
    +|#]+
    +[#|2011-03-04T15:05:27.900+0000|SEVERE|glassfishv3.0|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=11;_ThreadName=Thread-1;|Recovery+
    function for LSN 13 705277 failed on forward pass
    +|#]+
    +[#|2011-03-04T15:05:27.901+0000|SEVERE|glassfishv3.0|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=11;_ThreadName=Thread-1;|PANIC:+
    Invalid argument
    +|#]+
    +[#|2011-03-04T15:05:28.203+0000|SEVERE|glassfishv3.0|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=11;_ThreadName=Thread-1;|unable+
    to join the environment
    +|#]+
    +[#|2011-03-04T15:05:28.258+0000|SEVERE|glassfishv3.0|com.era7.lib.bdbxmlapi.BdbxmlManager|_ThreadID=11;_ThreadName=Thread-1;|The+
    log message is null.
    com.sleepycat.db.RunRecoveryException: DB_RUNRECOVERY: Fatal error,
    run database recovery: PANIC: Invalid argument
    unable to join the environment: DB_RUNRECOVERY: Fatal error, run
    database recovery
    at com.sleepycat.db.internal.db_javaJNI.DbEnv_open(Native Method)
    at com.sleepycat.db.internal.DbEnv.open(DbEnv.java:317)
    at com.sleepycat.db.EnvironmentConfig.openEnvironment(EnvironmentConfig.java:3886)
    at com.sleepycat.db.Environment.<init>(Environment.java:93)
    at com.era7.lib.bdbxmlapi.BdbxmlManager.initEnvironment(BdbxmlManager.java:384)
    at com.era7.lib.bdbxmlapi.BdbxmlManager.init(BdbxmlManager.java:294)
    at com.era7.lib.bdbxmlapi.BdbxmlManager.<init>(BdbxmlManager.java:135)
    at com.era7.doPlanning.appConf.listeners.DoPlanningApplicationListener.createManager(DoPlanningApplicationListener.java:177)
    at com.era7.doPlanning.appConf.listeners.DoPlanningApplicationListener.configureBdbxmlInitializationParams(DoPlanningApplicationListener.java:105)
    at com.era7.lib.slbdbxml.listeners.AbstractApplicationListener.contextInitialized(AbstractApplicationListener.java:51)
    at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:4591)
    at com.sun.enterprise.web.WebModule.contextListenerStart(WebModule.java:535)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:5193)
    at com.sun.enterprise.web.WebModule.start(WebModule.java:499)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:928)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:912)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:694)
    at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1933)
    at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1605)
    at com.sun.enterprise.web.WebApplication.start(WebApplication.java:90)
    at org.glassfish.internal.data.EngineRef.start(EngineRef.java:126)
    at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:241)
    at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:236)
    at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:339)
    at com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:340)
    at com.sun.enterprise.v3.server.ApplicationLoaderService.postConstruct(ApplicationLoaderService.java:163)
    at com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:174)
    at com.sun.hk2.component.ConstructorWomb$1.run(ConstructorWomb.java:87)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:84)
    at com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:77)
    at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:58)
    at com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107)
    at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:60)
    at com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:236)
    at com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.java:128)
    at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:457)
    at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:401)
    at org.jvnet.hk2.osgiadapter.HK2Main.start(HK2Main.java:125)
    at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:640)
    at org.apache.felix.framework.Felix.activateBundle(Felix.java:1700)
    at org.apache.felix.framework.Felix.startBundle(Felix.java:1622)
    at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:915)
    at org.jvnet.hk2.osgimain.Main.start(Main.java:140)
    at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:640)
    at org.apache.felix.framework.Felix.activateBundle(Felix.java:1700)
    at org.apache.felix.framework.Felix.startBundle(Felix.java:1622)
    at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1077)
    at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
    at java.lang.Thread.run(Thread.java:619)
    +|#]+
    +[#|2011-03-04T15:05:28.272+0000|SEVERE|glassfishv3.0|com.era7.doPlanning.appConf.listeners.DoPlanningApplicationListener|_ThreadID=11;_ThreadName=Thread-1;|The+
    log message is null.
    com.sleepycat.dbxml.XmlException: Invalid Environment object, may be
    closed., errcode = DATABASE_ERROR
    at com.sleepycat.db.XmlHelper.getDbEnv(XmlHelper.java:29)
    at com.sleepycat.dbxml.XmlManager.<init>(XmlManager.java:55)
    at com.era7.lib.bdbxmlapi.BdbxmlManager.initXmlManager(BdbxmlManager.java:265)
    at com.era7.lib.bdbxmlapi.BdbxmlManager.<init>(BdbxmlManager.java:137)
    at com.era7.doPlanning.appConf.listeners.DoPlanningApplicationListener.createManager(DoPlanningApplicationListener.java:177)
    at com.era7.doPlanning.appConf.listeners.DoPlanningApplicationListener.configureBdbxmlInitializationParams(DoPlanningApplicationListener.java:105)
    at com.era7.lib.slbdbxml.listeners.AbstractApplicationListener.contextInitialized(AbstractApplicationListener.java:51)
    at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:4591)
    at com.sun.enterprise.web.WebModule.contextListenerStart(WebModule.java:535)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:5193)
    at com.sun.enterprise.web.WebModule.start(WebModule.java:499)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:928)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:912)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:694)
    at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1933)
    at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1605)
    at com.sun.enterprise.web.WebApplication.start(WebApplication.java:90)
    at org.glassfish.internal.data.EngineRef.start(EngineRef.java:126)
    at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:241)
    at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:236)
    at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:339)
    at com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:340)
    at com.sun.enterprise.v3.server.ApplicationLoaderService.postConstruct(ApplicationLoaderService.java:163)
    at com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:174)
    at com.sun.hk2.component.ConstructorWomb$1.run(ConstructorWomb.java:87)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:84)
    at com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:77)
    at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:58)
    at com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107)
    at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:60)
    at com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:236)
    at com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.java:128)
    at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:457)
    at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:401)
    at org.jvnet.hk2.osgiadapter.HK2Main.start(HK2Main.java:125)
    at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:640)
    at org.apache.felix.framework.Felix.activateBundle(Felix.java:1700)
    at org.apache.felix.framework.Felix.startBundle(Felix.java:1622)
    at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:915)
    at org.jvnet.hk2.osgimain.Main.start(Main.java:140)
    at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:640)
    at org.apache.felix.framework.Felix.activateBundle(Felix.java:1700)
    at org.apache.felix.framework.Felix.startBundle(Felix.java:1622)
    at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1077)
    at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
    at java.lang.Thread.run(Thread.java:619)
    +|#]+
    For more information, when I run db_recover I got this errors
    BXML.2.5/bin/db_recover -c
    db_recover: Log sequence error: page LSN 12 3990397; previous LSN 13 675423
    db_recover: Recovery function for LSN 13 705277 failed on forward pass
    db_recover: PANIC: Invalid argument
    db_recover: PANIC: fatal region error detected; run recovery
    db_recover: /DBPool/DoPlanning/DoPlanningDB/era7/doPlanning.dbxml:
    write failed for page 764
    db_recover: /DBPool/DoPlanning/DoPlanningDB/era7/doPlanning.dbxml:
    unable to flush page: 764
    db_recover: process-private: unable to find environment
    db_recover: DB_ENV->open: DB_RUNRECOVERY: Fatal error, run database recovery
    BXML.2.5/bin/db_recover -c -v
    Finding last valid log LSN: file: 34 offset 10311907
    Recovery starting from [1][28]
    db_recover: Log sequence error: page LSN 12 3990397; previous LSN 13 675423
    db_recover: Recovery function for LSN 13 705277 failed on forward pass
    db_recover: PANIC: Invalid argument
    db_recover: PANIC: fatal region error detected; run recovery
    db_recover: /DBPool/DoPlanning/DoPlanningDB/era7/doPlanning.dbxml:
    write failed for page 764
    db_recover: /DBPool/DoPlanning/DoPlanningDB/era7/doPlanning.dbxml:
    unable to flush page: 764
    db_recover: process-private: unable to find environment
    db_recover: DB_ENV->open: DB_RUNRECOVERY: Fatal error, run database recovery
    When I run db_stat -e:
    Mon Mar  7 09:22:23 2011        Local time
    +0x120897 Magic number+
    +0 Panic value+
    +4.8.24 Environment version+
    +9 Btree version+
    +9 Hash version+
    +1 Lock version+
    +15 Log version+
    +4 Queue version+
    +2 Sequence version+
    +1 Txn version+
    Fri Mar  4 15:34:36 2011        Creation time
    +0xcf201e5f Environment ID+
    +2 Primary region allocation and reference count mutex [0/4 0% !Own]+
    +3 References+
    +=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
    +0x40988 Log magic number+
    +15 Log version number+
    +50MB Log record cache size+
    +0 Log file mode+
    +10Mb Current log file size+
    +9777 Records entered into the log+
    +895KB 899B Log bytes written+
    +895KB 899B Log bytes written since last checkpoint+
    +123 Total log file I/O writes+
    +0 Total log file I/O writes due to overflow+
    +123 Total log file flushes+
    +24737 Total log file I/O reads+
    +34 Current log file number+
    +10435138 Current log file offset+
    +34 On-disk log file number+
    +10435138 On-disk log file offset+
    +1 Maximum commits in a log flush+
    +1 Minimum commits in a log flush+
    +50MB 256KB Log region size+
    +0 The number of region locks that required waiting (0%)+
    +=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
    +=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
    +2123 Last allocated locker ID+
    +0x7fffffff Current maximum unused locker ID+
    +9 Number of lock modes+
    +15000 Maximum number of locks possible+
    +15000 Maximum number of lockers possible+
    +15000 Maximum number of lock objects possible+
    +1 Number of lock object partitions+
    +176 Number of current locks+
    +182 Maximum number of locks at any one time+
    +20 Maximum number of locks in any one bucket+
    +0 Maximum number of locks stolen by for an empty partition+
    +0 Maximum number of locks stolen for any one partition+
    +346 Number of current lockers+
    +361 Maximum number of lockers at any one time+
    +44 Number of current lock objects+
    +70 Maximum number of lock objects at any one time+
    +2 Maximum number of lock objects in any one bucket+
    +0 Maximum number of objects stolen by for an empty partition+
    +0 Maximum number of objects stolen for any one partition+
    +158M Total number of locks requested (158999583)+
    +158M Total number of locks released (158999340)+
    +0 Total number of locks upgraded+
    +727 Total number of locks downgraded+
    +19 Lock requests not available due to conflicts, for which we waited+
    +11 Lock requests not available due to conflicts, for which we did not wait+
    +0 Number of deadlocks+
    +0 Lock timeout value+
    +0 Number of locks that have timed out+
    +0 Transaction timeout value+
    +0 Number of transactions that have timed out+
    +7MB 840KB The size of the lock region+
    +0 The number of partition locks that required waiting (0%)+
    +0 The maximum number of times any partition lock was waited for (0%)+
    +0 The number of object queue operations that required waiting (0%)+
    +0 The number of locker allocations that required waiting (0%)+
    +115 The number of region locks that required waiting (0%)+
    +2 Maximum hash bucket length+
    +=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
    +6MB 257KB 604B Total cache size+
    +1 Number of caches+
    +1 Maximum number of caches+
    +6MB 264KB Pool individual cache size+
    +0 Maximum memory-mapped file size+
    +0 Maximum open file descriptors+
    +0 Maximum sequential buffer writes+
    +0 Sleep after writing maximum sequential buffers+
    +10 Requested pages mapped into the process' address space+
    +344M Requested pages found in the cache (99%)+
    +1282817 Requested pages not found in the cache+
    +3319 Pages created in the cache+
    +1282817 Pages read into the cache+
    +7780 Pages written from the cache to the backing file+
    +1277963 Clean pages forced from the cache+
    +7779 Dirty pages forced from the cache+
    +0 Dirty pages written by trickle-sync thread+
    +395 Current total page count+
    +389 Current clean page count+
    +6 Current dirty page count+
    +1031 Number of hash buckets used for page location+
    +4096 Assumed page size used+
    +346M Total number of times hash chains searched for a page (346931510)+
    +4 The longest hash chain searched for a page+
    +389M Total number of hash chain entries checked for page (389374869)+
    +0 The number of hash bucket locks that required waiting (0%)+
    +0 The maximum number of times any hash bucket lock was waited for (0%)+
    +0 The number of region locks that required waiting (0%)+
    +0 The number of buffers frozen+
    +0 The number of buffers thawed+
    +0 The number of frozen buffers freed+
    +1286173 The number of page allocations+
    +5923486 The number of hash buckets examined during allocations+
    +29 The maximum number of hash buckets examined for an allocation+
    +1285743 The number of pages examined during allocations+
    +2 The max number of pages examined for an allocation+
    +0 Threads waited on page I/O+
    +0 The number of times a sync is interrupted+
    Pool File: /DBPool/DoPlanning/DoPlanningDB/era7/doPlanningLogs.dbxml
    +16384 Page size+
    +0 Requested pages mapped into the process' address space+
    +766861 Requested pages found in the cache (99%)+
    +3408 Requested pages not found in the cache+
    +9 Pages created in the cache+
    +3408 Pages read into the cache+
    +595 Pages written from the cache to the backing file+
    Pool File: /DBPool/DoPlanning/DoPlanningDB/era7/doPlanning.dbxml
    +16384 Page size+
    +0 Requested pages mapped into the process' address space+
    +344M Requested pages found in the cache (99%)+
    +1278423 Requested pages not found in the cache+
    +3309 Pages created in the cache+
    +1278423 Pages read into the cache+
    +7117 Pages written from the cache to the backing file+
    Pool File: sequenceDb
    +16384 Page size+
    +0 Requested pages mapped into the process' address space+
    +2 Requested pages found in the cache (25%)+
    +6 Requested pages not found in the cache+
    +0 Pages created in the cache+
    +6 Pages read into the cache+
    +1 Pages written from the cache to the backing file+
    Pool File: /DBPool/DoPlanning/DoPlanningDB/era7/doPlanningMessages.dbxml
    +16384 Page size+
    +0 Requested pages mapped into the process' address space+
    +7111 Requested pages found in the cache (88%)+
    +926 Requested pages not found in the cache+
    +1 Pages created in the cache+
    +926 Pages read into the cache+
    +58 Pages written from the cache to the backing file+
    Pool File: /DBPool/DoPlanning/DoPlanningDB/era7/doPlanningErrorLogs.dbxml
    +16384 Page size+
    +0 Requested pages mapped into the process' address space+
    +1322 Requested pages found in the cache (96%)+
    +54 Requested pages not found in the cache+
    +0 Pages created in the cache+
    +54 Pages read into the cache+
    +9 Pages written from the cache to the backing file+
    +=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
    +0/0 No checkpoint LSN+
    Fri Mar  4 15:34:47 2011        Checkpoint timestamp
    +0x80000b22 Last transaction ID allocated+
    +5000 Maximum number of active transactions configured+
    +18 Active transactions+
    +22 Maximum active transactions+
    +2850 Number of transactions begun+
    +12 Number of transactions aborted+
    +2820 Number of transactions committed+
    +0 Snapshot transactions+
    +0 Maximum snapshot transactions+
    +0 Number of transactions restored+
    +1MB 456KB Transaction region size+
    +0 The number of region locks that required waiting (0%)+
    Active transactions:
    +800009c2: running; pid/thread 29365/1322; begin LSN: file/offset 0/0+
    +800009d2: running; pid/thread 29365/1323; begin LSN: file/offset 0/0+
    +800009e0: running; pid/thread 29365/1332; begin LSN: file/offset 0/0+
    +800009ec: running; pid/thread 29365/1333; begin LSN: file/offset 0/0+
    +800009f8: running; pid/thread 29365/1334; begin LSN: file/offset 0/0+
    +80000a04: running; pid/thread 29365/1335; begin LSN: file/offset 0/0+
    +80000a10: running; pid/thread 29365/1336; begin LSN: file/offset 0/0+
    +80000a17: running; pid/thread 29365/1337; begin LSN: file/offset 0/0+
    +80000a23: running; pid/thread 29365/1338; begin LSN: file/offset 0/0+
    +80000a35: running; pid/thread 29365/1339; begin LSN: file/offset 0/0+
    +80000a58: running; pid/thread 29365/1341; begin LSN: file/offset 0/0+
    +80000a62: running; pid/thread 29365/1349; begin LSN: file/offset 0/0+
    +80000a74: running; pid/thread 29365/1350; begin LSN: file/offset 0/0+
    +80000a80: running; pid/thread 29365/1351; begin LSN: file/offset 0/0+
    +80000a8c: running; pid/thread 29365/1352; begin LSN: file/offset 0/0+
    +80000a98: running; pid/thread 29365/1353; begin LSN: file/offset 0/0+
    +80000aa6: running; pid/thread 29365/1354; begin LSN: file/offset 0/0+
    +80000ad1: running; pid/thread 29365/134; begin LSN: file/offset 0/0+
    +=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
    +3MB 448KB Mutex region size+
    +0 The number of region locks that required waiting (0%)+
    +4 Mutex alignment+
    +1 Mutex test-and-set spins+
    +30000 Mutex total count+
    +28206 Mutex free count+
    +1794 Mutex in-use count+
    +1819 Mutex maximum in-use count+
    Mutex counts
    +28206 Unallocated+
    +116 db handle+
    +2 env dblist+
    +4 env handle+
    +1 env region+
    +4 lock region+
    +182 logical lock+
    +1 log filename+
    +1 log flush+
    +3 log region+
    +5 mpoolfile handle+
    +395 mpool buffer+
    +10 mpool filehandle+
    +17 mpool file bucket+
    +2 mpool handle+
    +1031 mpool hash bucket+
    +1 mpool region+
    +1 mutex region+
    +12 sequence+
    +2 twister+
    +2 txn active list+
    +1 transaction checkpoint+
    +1 txn region+
    I try to run db_verify but I don't know the right way and I get:
    +db_verify [-NoqV] [-h home] [-P password] db_file ...+
    Thank you for everything

  • Multiple listeners in Weblogic

    Hi:
    Can I deploy multiple Apex listeners pointing to different Databases in the same Weblogic server? Is there any documentation or OTN Notes on this?
    Regards
    David

    You don't need multiple domains to run multiiple listeners. This is exactly what we are doing in or development environment.
    As mentioned by Udo, you need to have a different config dir configuration for each apex.war deployment in WebLogic.
    For example, you may have two development databases. DEV1 and DEV2
    copy the apex.war file twice and rename to apex_dev1.war for the DEV1 instance and apex_dev2.war for the DEV2 instance.
    Unzip/unjar the file and modify the web.xml file as follows in apex_dev1.war:
    <context-param>
    <param-name>config.dir</param-name>
    <param-value>${apex_dev1.dir}</param-value>
    </context-param>
    Unzip/unjar the file and modify the web.xml file as follows in apex_dev2.war:
    <context-param>
    <param-name>config.dir</param-name>
    <param-value>${apex_dev2.dir}</param-value>
    </context-param>
    In the WebLogic console go to the Server configuration->Server Start tab and under the Arguments section enter the following (or wherever depending on your environment):
    -Dapex_dev1.dir=/ora/Middleware/user_projects/applications/apex_dev1_config;-Dapex_dev2.dir=/ora/Middleware/user_projects/applications/apex_dev2_config
    You must create bothdirectories first before starting the server.
    Deploy the new war files via the console in Weblogic and then goto /apex_dev1/listenerConfigure and configure it for the appropriate database. Do the same for apex_dev2.
    This way you will know which DB you hitting via the URL.
    good luck.

  • I cannot start listeners

    Hi, I am installing OCS R2 on a Windows 2000 machine.
    I am performing a single box installation (I am not using the single box DVD, though).
    After installing the middle tier, the environment variable ORACLE_HOME was set to the midtier home.
    (ORACLE_HOME=D:\ocs\midtier)
    But this was causing a problem, I could not start the following listeners:
    - listener_iasdb
    - listener_store
    For instance I was trying to start the infrastructure's listener, like this:
    <infa_home>:/bin/lsnrctl start listener_iasdb
    (The same for listener_store)
    <store_home>:/bin/lsnrctl start listener_store
    The only listener I could start was the midtier's listener (listener_es).
    The lsnrctl log file sayed that there wasn't a listener with such name (_store or _iasdb). Also there was this line:
    Archivo de Parßmetros del Listener
    (Listener's parameters file)
    D:\ocs\midtier\network\admin\listener.ora
    This last made me noticed that it was because of this ORACLE_HOME variable that the only listener.ora file that the lsnrctl would try to invoke was the one under the
    ORACLE_HOME directory (which was midtier's home at that time).
    Because of this I removed the variable ORACLE_HOME, and then I was able to start the other listeners.
    But now I'm experiencing some problems configuring calendar for instance and I am told that's because I have some environment variables missing (such as ORACLE_HOME, LD_LIBRARY_PATH).
    So now that I have added back the ORACLE_HOME variable, I am experiencing the same problem with the listeners.
    Has anyone experienced this problem?
    What is the solution?
    Will it work if I copy the content found on the files: <infa_home>/network/admin/listener.ora & tnsnames.ora
    and
    <store_home>/network/admin/listener.ora & tnsnames.ora
    into the files
    <midtier_home>/network/admin/listener.ora & tnsnames.ora
    So that I only have to start one listener file (midtier's listener parameter file), right?
    Thanks in advance for any help.
    Jorge

    Hi, I am installing OCS R2 on a Windows 2000 machine.
    I am performing a single box installation (I am not using the single box DVD, though).
    After installing the middle tier, the environment variable ORACLE_HOME was set to the midtier home.
    (ORACLE_HOME=D:\ocs\midtier)
    But this was causing a problem, I could not start the following listeners:
    - listener_iasdb
    - listener_store
    For instance I was trying to start the infrastructure's listener, like this:
    <infa_home>:/bin/lsnrctl start listener_iasdb
    (The same for listener_store)
    <store_home>:/bin/lsnrctl start listener_store
    The only listener I could start was the midtier's listener (listener_es).
    The lsnrctl log file sayed that there wasn't a listener with such name (_store or _iasdb). Also there was this line:
    Archivo de Parßmetros del Listener
    (Listener's parameters file)
    D:\ocs\midtier\network\admin\listener.ora
    This last made me noticed that it was because of this ORACLE_HOME variable that the only listener.ora file that the lsnrctl would try to invoke was the one under the
    ORACLE_HOME directory (which was midtier's home at that time).
    Because of this I removed the variable ORACLE_HOME, and then I was able to start the other listeners.
    But now I'm experiencing some problems configuring calendar for instance and I am told that's because I have some environment variables missing (such as ORACLE_HOME, LD_LIBRARY_PATH).
    So now that I have added back the ORACLE_HOME variable, I am experiencing the same problem with the listeners.
    Has anyone experienced this problem?
    What is the solution?
    Will it work if I copy the content found on the files: <infa_home>/network/admin/listener.ora & tnsnames.ora
    and
    <store_home>/network/admin/listener.ora & tnsnames.ora
    into the files
    <midtier_home>/network/admin/listener.ora & tnsnames.ora
    So that I only have to start one listener file (midtier's listener parameter file), right?
    Thanks in advance for any help.
    Jorge

Maybe you are looking for

  • How do I reinstall messages in os mountain lion ?

    I previously attempted to use ichat prior to messages being part of mountain lion when upgrading to mountain lion , it used all my contacts from ichat , but I am unable to send or recieve messages from macbook I am also unable to add or delete contac

  • Can you set Mail with 'outgoing only' addresses?

    I run my own mail server that collects all my incoming emails, but have many addresses to send from. On ahem Outlook, I could stop accounts from collecting mail, and set them to send mail only. Is there a way to set Mail to have 'send-only' email acc

  • New Final Cut Studio

    Anyone have any idea when the next version of FCPStudio is planning on coming out? I have to reinvest in it and don't want to commit to anything right before a new version comes out. DG

  • How do I get my Internet to work correctly?

    I recently purchased an iPhone 4 and all of my apps that require Internet will only work if I have wifi. How do I get my Internet to work correctly without wifi?

  • Suddenly can't open PDFs

    I have a Dell about a year old that came with Windows 8. I open PDFs on a regular basis and suddenly it just stopped. Reader comes up and the screen goes dark and the blue circle circles but nothing ever opens.