4.1EA2 - Startup script / serveroutput randomly stops
I have a startup script that only contains the text "SET SERVEROUTPUT ON". I've used this flawlessly in previous versions. In this EA version, it randomly stops displaying the output. If I quit SQL Developer and restart, it works again. I haven't found any pattern to this other than I have multiple unshared worksheets open at a time, and switch between them frequently.
Anyone else run into this or know of a workaround?
Try the Firefox SafeMode. <br />
''A troubleshooting mode, which disables most Add-ons.'' <br />
''(If you're not using it, switch to the Default Theme.)''
# You can open the Firefox 4/5/6/7 SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut.
# Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shft key) to open it again.''
If it is good in the Firefox SafeMode, your problem is probably caused by an extension, and you need to figure out which one. <br />
http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes
Similar Messages
-
Run the startup script (start and stop) with a user other than oracle
hi
I wrote a script that stops and start oracle. the connection to the db was done : sqlplus "as sysdba".
The script works fine if oracle user runs it. however, I need another user to run this script also. The script does not run with this user even though I added it to the oracle group.
any idea please?try the -c option with the su like this:
su - oracle "-c scriptyouwrote.sh"
greetings -
Safari randomly stops opening pages
Hi Everyone,
Since upgrading to Yosemite, Safari randomly stops opening pages. It works for a while, then if I put my computer to sleep, sometimes when I wake my computer, Safari will no longer opens pages. When this happens, all apps requiring internet are affected including Firefox and Chrome which no longer work, as well as mail and iMessage.
They only way to get it to work again is to reboot my computer - sometimes I need to do this several times.
I have deleted Safari preferences to no avail.
Can anyone suggest a solution?
Thanks
TB1. 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.AAM.Updater-1.0 com.adobe.AAM.Updater-1.0 com.adobe.AdobeCreativeCloud com.adobe.CS4ServiceManager com.adobe.CS5ServiceManager com.adobe.fpsaud com.adobe.SwitchBoard com.adobe.SwitchBoard com.apple.aelwriter com.apple.AirPortBaseStationAgent com.apple.FolderActions.enabled com.apple.installer.osmessagetracing com.apple.mrt.uiagent com.apple.ReportCrash.Self com.apple.rpmuxd com.apple.SafariNotificationAgent com.apple.usbmuxd com.citrixonline.GoToMeeting.G2MUpdate com.google.keystone.agent com.google.keystone.daemon com.microsoft.office.licensing.helper com.oracle.java.Helper-Tool com.oracle.java.JavaUpdateHelper com.oracle.java.JavaUpdateHelper org.macosforge.xquartz.privileged_startx org.macosforge.xquartz.privileged_startx org.macosforge.xquartz.startx' '879294308 4071182229 461455494 3627668074 1083382502 1274181950 1855907737 2758863019 1848501757 464843899 3694147963 1233118628 2456546649 2806998573 2778718105 2636415542 842973933 2051385900 3301885676 891055588 998894468 695903914 1443423563 4136085286 523110921 2883943871 3873345487' 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;/faceb/s/(at\.)[^.]+/\1NAME/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: (E[^m]|[^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 { if(n<10) print "com.apple.";} ' ' { sub(/ :/,"");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 { 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]";"cksum "F|getline C;split(C, A);C="checksum "A[1];"file -b "F|getline T;if(T!~/^(AS.+ (En.+ )?text(, with v.+)?$|(Bo|PO).+ sh.+ text ex|XM)/) F=F" ("T", "C")";else F=F" ("C")";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|"sort|uniq";} ' '/^ +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/^ */ /;' ' s/^.+ |\(.+\)$//g;p ' '/\.(appex|pluginkit)\/Contents\/Info\.plist$/p' ' /2/{print "WARN"};/4/{print "CRITICAL"};' ' /EVHF|MACR|^s/d;s/^.+: //p;' ' $3~/^[1-9][0-9]{0,2}(\.[1-9][0-9]{0,2}){2}$/ { i++;n=n"\n"$1"\t"$3;} END { if(i>1) print n;} ' ' /\.framework$/&&!/\/Contents\// { n++;print;} END { if(n<400) print "/System/";} ' ' { gsub(/[()"]/,"",$3);print $3;} ' );c1=(system_profiler pmset\ -g nvram fdesetup find syslog df vm_stat sar ps crontab iotop top pkgutil 'PlistBuddy 2>&1 -c "Print' whoami cksum kextstat launchctl smcDiagnose sysctl\ -n defaults\ read stat lsbom mdfind ' for i in ${p[24]};do ${c1[18]} ${c2[27]} $i;done;' pluginkit scutil dtrace profiles sed\ -En awk /S*/*/P*/*/*/C*/*/airport networksetup mdutil lsof test osascript\ -e netstat mdls );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 \$(RefProc): \$Message' -k Sender Req 'fsev|kern|launchd' -k RefProc Rne 'Aq|WebK' -k Message Rne 'Goog|ksadm|probe|Roame|SMC:|smcD|sserti|suhel| VALI|ver-r|xpma' -k Message Req 'abn|bad |Beac|caug|corru|dead[^bl]|FAIL|fail|GPU |hfs: Ru|inval|jnl:|last value [1-9]|NVDA\(|pagin|pci pa|proc: t|Roamed|rror|SL|TCON|Throttli|tim(ed? ?|ing )o|WARN' " '-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 --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)}'" -m 'L*/{Con*/*/Data/L*/,}Pref* -type f -size 0c -name *.plist.???????|wc -l' kern.memorystatus_vm_pressure_level '3>&1 >&- 2>&3' " -F '\$Time \$Message' -k Sender kernel -k Message CSeq 'n Cause: -' " -i 'kMDItemContentType=com.apple.framework|sort' -name\ kMDItem${p[35]} );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 App\ extensions Lockfiles Memory\ pressure SMC Shutdowns Nets Frameworks );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" ]];};A'$((7+i))'() { v=` eval sudo "${c1[$1]} ${c2[$2]}"|'${c1[30+i]}' "${s[$3]}" `;[[ "$v" ]];};';done;A9(){ 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 7 8;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;B1&&D73 19 53 67 55;D22 2 12 9 11;D12 3 13 10 12;D23 4 19 44 13;D23 5 54 12 56;D23 5 14 12 14;D22 6 36 13 15;D22 20 52 66 54;D22 7 37 14 16;D23 8 15 38 17;D22 9 16 16 18;B1&&{ D82 35 49 61 51;D82 11 17 17 20;for i in 0 1;do D82 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&&{ A8 18 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;B4 4 22 69;A1 24 56 32;B7 22;B2 23;A4 39 57 70 23;B2 24;B6 23 24 4;C3 58;B3 4 0 65;A3 14 6 32 0;B4 0 16 11;A1 26 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&&{ D73 21 0 32 19;D73 10 42 32 40;D82 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 21 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 38 55 68 57;D23 33 34 42 37;B1&&D83 35 45 55 46;D23 32 31 43 38;D12 36 47 32 48;D13 10 42 32 41;D13 37 2 48 43;D13 4 5 32 1;D13 4 3 60 5;D12 21 48 49 49;B3 4 22 57;A1 21 46 56;B7 22;B3 0 0 58;C3 47;D22 4 4 50 0;D12 4 51 32 53;D23 22 9 37 7;A9;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 and start typing the name.
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. -
Ssh install on solaris core group installation - startup scripts?
hi all,
i have a fresh "core group" installation of solaris 11/06 now up and running.
I have added the following pkg to get ssh running.
bash-3.00# pkginfo |grep ssh
system SUNWsshcu SSH Common, (Usr)
system SUNWsshdr SSH Server, (Root)
system SUNWsshdu SSH Server, (Usr)
system SUNWsshr SSH Client and utilities, (Root)
system SUNWsshu SSH Client and utilities, (Usr)
so it is installed. I have manually created ssh_host_keys and I can start and use sshd/sftp -server. However I'm in need to find the best way of starting this up at boot. I have followed a link to Sun Blueprints for open ssh startup scripts.
http://www.sun.com/blueprints/tools/ > secureshell-tools.tar.Z
however this relies on prng (psuedo random number generator). my "default installation" of solaris 10 11/06 does not have this installed and ssh works fine, so I am reluctant to go down prng path.
furthermore searching my "default installation" of solaris 10 11/06 i can not see any ssh startup scripts that I could heist
please advise best practicefixed for now
http://www.sun.com/bigadmin/content/selfheal/smf-quickstart.html > Enabling and disabling services
since solaris 10, use "svcadm"
ie
mybox86# svcadm enable network/ssh:default
very nice. -
Script to automate stop/start listener on aix
Hello everyone,
We have a database on oracle 8i on aix platform and we have a scheduled restart on the db everyday. But we have been facing problem with the db restart and it gets hanged.
As a solution, i wanted to develop a shell script that will stop the listener first before the db shut down.
Can anyone help me please?If I remember correctly, example scripts to automate db and listener startup and shutdown are in the oracle 8i installation guide for your platform.
The following should work:
vi /etc/init.d/oracle
ORACLE_HOME=your path to oracle home directory
case "$1" in
'start')
su - oracle -c "$ORACLE_HOME/bin/lsnrctl start"
su - oracle -c "$ORACLE_HOME/bin/dbstart"
'stop')
su - oracle -c "$ORACLE_HOME/bin/dbshut"
su - oracle -c "$ORACLE_HOME/bin/lsnrctl stop"
esacThen set execute privileges on the above file:
chmod 750 oracle
Next add the appropriate symbolic links:
ln -s /etc/init.d/oracle /etc/rc.d/rc3.d/K01oracle
ln -s /etc/init.d/oracle /etc/rc.d/rc3.d/S99oracle
ln -s /etc/init.d/oracle /etc/rc.d/rc5.d/K01oracle
ln -s /etc/init.d/oracle /etc/rc.d/rc5.d/S99oracle
The oracle dbstart and dbshut scripts rely on entries in */etc/oratab*, so make sure you have a "Y" in the file for yes to autostart and auto shutdown. -
Startup Scripts for OBIEE 11g on Linux
Hi, I originally spent many hours trying to find a startup/shutdown script for OBIEE on linux, in the end I compiled a new one based on notes in the install manual and other posts on the subject until I got it working consistantly
Please add comments or improvements :)
Note: you need to create the boot.properties file (in /security) for each server, and provide the username/password so WebLogic won't prompt for it when starting automatically (otherwise it doesn't start :p) ....refer to the install manual or [weblogic boot.properties|http://onlineappsdba.com/index.php/2010/08/21/weblogic-startup-prompting-from-username-password-bootproperties/]
#!/bin/bash
# /etc/init.d/obiee
# Run-level Startup script for OBIEE
# set required paths
export ORACLE_BASE=/opt/oracle
export ORACLE_HOME=/opt/oracle/product/11.1.0/db_1
export ORACLE_OWNR=oracle
export ORACLE_FMW=/opt/oracle/product/fmw
export PATH=$PATH:$ORACLE_FMW/bin
case "$1" in
start)
echo -e "Starting Weblogic Server...."
su $ORACLE_OWNR -c "$ORACLE_FMW/user_projects/domains/bifoundation_domain/bin/startWebLogic.sh > /dev/null 2>&1 &"
sleep 30
echo -e "Starting Node Manager..."
su $ORACLE_OWNR -c "$ORACLE_FMW/wlserver_10.3/server/bin/startNodeManager.sh > /dev/null 2>&1 &"
sleep 30
echo -e "Starting Managed Server: bi_server1..."
su $ORACLE_OWNR -c "$ORACLE_FMW/user_projects/domains/bifoundation_domain/bin/startManagedWebLogic.sh bi_server1 [url for admin console] > /dev/null 2>&1 &"
sleep 30
echo -e "Starting Components...."
su $ORACLE_OWNR -c "$ORACLE_FMW/instances/instance1/bin/opmnctl startall > /dev/null 2>&1 &"
sleep 30
stop)
echo -e "Stopping Components...."
su $ORACLE_OWNR -c "$ORACLE_FMW/instances/instance1/bin/opmnctl stopall > /dev/null 2>&1 &"
sleep 30
echo -e "Stopping Managed Server: bi_server1..."
su $ORACLE_OWNR -c "$ORACLE_FMW/user_projects/domains/bifoundation_domain/bin/stopManagedWebLogic.sh bi_server1 [url for admin console] [weblogic user] [weblogic pass] > /dev/null 2>&1 &"
sleep 30
echo -e "Stopping Weblogic Server...."
su $ORACLE_OWNR -c "$ORACLE_FMW/user_projects/domains/bifoundation_domain/bin/stopWebLogic.sh > /dev/null 2>&1 &"
sleep 15
status)
echo -e "Component Status...."
su $ORACLE_OWNR -c "$ORACLE_FMW/instances/instance1/bin/opmnctl status"
restart)
$0 stop
$0 start
echo "Usage: `basename $0` start|stop|restart|status"
exit 1
esac
exit 0
Hopefully this helps others in the same situation
CheersHI,
Is this script for Enterprise Install on a single computer? For Simple install I think there is no concept of nodemanager and managedserver.
--Joe -
iTunes randomly stops playing purchases that have previously viewed on the same hardware. It has an error message about HD. How can this issue be resolved? What information is available besides the "learn more" option that does not deal with the problem?
Many people have the same problem. However, there is little or nothing readily available to users. This problem has existed for two or more years. Does anyone have anything to offer about this disturbing problem?Thanks for the suggestion kcell. I've tried both versions
9.0.115 and 9.0.124 and both fail with the policy permission error.
I also tried with and without your crossdomain.xml file but
with the same result. It looks like this file is intended for URL
policy, instead of socket policy. Recently Adobe separated the two.
When I run with the files installed on my dev PC, it does
work, which makes sense because the flash player isn't loaded from
an unknown domain.
I did get one step closer. If a crossdomain.xml in the server
root exists and the socketpolicy file is loaded from the app folder
then the first two warnings disappear. The logs now show:
OK: Root-level SWF loaded:
https://192.168.2.5/trunk/myapp.swf
OK: Policy file accepted: https://192.168.2.5/crossdomain.xml
OK: Policy file accepted:
https://192.168.2.5/trunk/socketpolicy.xml
Warning: Timeout on xmlsocket://192.168.2.5:843 (at 3
seconds) while waiting for socket policy file. This should not
cause any problems, but see
http://www.adobe.com/go/strict_policy_files
for an explanation.
Warning: [strict] Ignoring policy file with incorrect syntax:
xmlsocket://192.168.2.5:993
Error: Request for resource at xmlsocket://192.168.2.5:993 by
requestor from https://192.168.2.5/trunk/myapp.swf is denied due to
lack of policy file permissions.
Which basically says, everything is okay, but you stay out
anyway.
PS: I found the XML schema files here:
http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security_02.html
and the socket policy schema:
http://www.adobe.com/xml/schemas/PolicyFileSocket.xsd.
UPDATE: When serving up the policy file on port 843 using the
example perl script then the socket connection seems to be accepted
and the connect succeeds. After that flex hangs trying to logon to
the IMAP server. -
Why is my startup script getting a timeout error in FrameMaker?
Using FM 11
ExtendScript
Windows 7
I'm running an ExtendScript from the FM Startup directory, by starting FM from a batch file. The Extendscript opens multiple book files (one at a time) and does a save as pdf for each one. FrameMaker terminates the script with a timeout error at random points in the script after only one or two saves. The Extendscript runs fine when I run it from the FM Scripting window. It only times out when I run it as a startup script. Is there some workaround for this? Sadly, I find no documentation about this.Thanks, Rick. Here is the body of the Extendscript that is in the FM Startup directory. The batch file starts FM and then this script gets kicked off.
main();
function main() {
log("Starting the script.");
var controlFile = File("G:\\fmToPdf\\fmToPdf.control");
var controlContent = null;
if(controlFile.exists === true) {
// Open the file.
controlFile.open("r"); // r means read only.
// Read the file contents into a variable.
controlContent = controlFile.read();
// Close the file.
controlFile.close();
var bookRegEx = /^book="(.*)"/;
var targetRegEx = /^target="(.*)"/;
var pathRegEx = /([^\\]+)$/;
var lines = controlContent.split("\n");
for (i = 0; i < lines.length; i++) {
var line = lines[i];
if (bookRegEx.test(line) === true) {
var result = line.match(bookRegEx);
var inBook = result[1];
var pathComponents = pathRegEx.exec(inBook);
var fileName = pathComponents[1].replace("book", "pdf");
for (i = i + 1; i < lines.length; i++) {
line = lines[i];
if (targetRegEx.test(line)===true) {
result = line.match(targetRegEx);
var outBook = result[1] + fileName;
log("Starting to generate: " + outBook);
fileId = openBook(inBook);
saveBook(fileId,outBook);
closeBook(fileId);
log("Finished with: " + outBook);
} else {
break;
// close FrameMaker
Constants.FF_CLOSE_MODIFIED = 1;
app.Close (Constants.FF_CLOSE_MODIFIED);
log("We're done.");
return;
function openBook(filename)
var openProp = GetOpenDefaultParams();
var retParm = new PropVals();
var BookOpen=Open(filename,openProp,retParm);
return BookOpen
// save as pdf
function saveBook(file, pdfName)
var saveProp = GetSaveDefaultParams();
var i = GetPropIndex(saveProp, Constants.FS_FileType);
saveProp[i].propVal.ival = Constants.FV_SaveFmtPdf;
//i = GetPropIndex (saveProp, Constants.FS_DontNotifyAPIClients)
//saveProp[i].propVal.ival = true;
var retParmspdf = new PropVals();
// pdf settings
file.PDFBookmark = true;
file.PDFBookmarksOpenLevel = Constants.FV_PDFBookmarksOpenDefaultLevel;
file.PDFConvertCMYKtoRGB = true;
file.PDFDistillerAbsent = 0;
file.PDFJobOption = "High Quality Print";
file.PDFSeparateFiles = false;
file.DocIsViewOnly = 1;
file.Save(pdfName, saveProp, retParmspdf);
return
// close file
function closeBook(filename)
filename.Close (Constants.FF_CLOSE_MODIFIED);
function log(message, reset)
var logfile = File("G:\\fmToPdf\\fmToPdf.log");
var openMode = (reset === undefined) ? "a" : "w";
logfile.open(openMode);
logfile.writeln(getTimeStamp() + " " + message);
logfile.close();
function getTimeStamp(){
var d = new Date();
var timestamp = d.getFullYear() + "." +
zeroFill ((d.getMonth() + 1), 2) + "." +
zeroFill (d.getDate(), 2) + " " +
zeroFill (d.getHours(), 2) + ":" +
zeroFill (d.getMinutes(), 2) + ":" +
zeroFill (d.getSeconds(), 2);
return timestamp;
function zeroFill( number, width )
width -= number.toString().length;
if ( width > 0 )
return new Array( width + (/\./.test( number ) ? 2 : 1) ).join( '0' ) + number;
return number + ""; // always return a string -
Oracle11r2/Solaris10 Problem startup script "insufficient privileges"
Hi,
I have a problem with my startup script. i think that is the permissions but i dont know.
When i run the script as oracle user, the script runs ok. But when i reboot the system the log showme error with "insufficient privileges".
This is my script.
+# more dbora+
+#!/usr/bin/bash -x+
+#/bin/sh -x+
+#+
+# Change the value of ORACLE_HOME to specify the correct Oracle home+
+# directory for your installation.+
ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1
+#+
+# Change the value of ORACLE to the login name of the+
+# oracle owner at your site.+
+#+
ORACLE=oracle
+PATH=${PATH}:$ORACLE_HOME/bin+
HOST=`hostname`
PLATFORM=`uname`
ORACLE_SID="orcl"
export ORACLE_HOME PATH ORACLE_SID
case $1 in
+'start')+
sleep 3
+# rsh $HOST -l $ORACLE -n "$ORACLE_HOME/bin/dbstart $ORACLE_HOME &"+
+# su - oracle -c "$ORACLE_HOME/bin/dbstart"+
+# $ORACLE_HOME/bin/dbstart "+
+$ORACLE_HOME/bin/dbstart $ORACLE_HOME &+
+$ORACLE_HOME/bin/lsnrctl start &+
+$ORACLE_HOME/bin/emctl start dbconsole &+
+;;+
+'stop')+
+$ORACLE_HOME/bin/dbshut $ORACLE_HOME &+
+$ORACLE_HOME/bin/lsnrctl stop &+
+$ORACLE_HOME/bin/emctl stop dbconsole &+
+;;+
+*)+
+echo "usage: $0 start"+
+exit+
+;;+
+esac+
+exit+
+#+
+# ll /etc/init.d/dbora+
+-rwxr-x--- 1 root dba 1185 Apr 20 10:33 /etc/init.d/dbora+
+#+
+# ll /etc/rc3.d/+
+total 42+
+...+
+...+
+lrwxrwxrwx 1 root root 17 Apr 20 10:30 K01dbora -> /etc/init.d/dbora+
+lrwxrwxrwx 1 root root 17 Apr 19 17:04 S99dbora -> /etc/init.d/dbora+
+#+
+# more /var/opt/oracle/oratab+
+orcl:/u01/app/oracle/product/11.2.0/db_1:Y+
+other:/u01/app/oracle/product/11.2.0/db_1:Y+
+#+
+# more /etc/group+
+...+
+...+
+oinstall::100:oracle+
+dba::101:oracle+
+#+
I try with su - oracle -c "command" in the script but doesnt work (the oracle doesnt startup and startup log dont show nothing).
I dont know whats the problem. I will thank you for your help.
Thanks.
========
startup log from the init.d:
++ export ORACLE_SID+
++ PATH=/u01/app/oracle/product/11.2.0/db_1/bin:/bin:/usr/bin:/etc:/usr/sbin:/usr/bin:/u01/app/oracle/product/11.2.0/db_1/bin+
++ export PATH+
++ LD_LIBRARY_PATH=/u01/app/oracle/product/11.2.0/db_1/lib:+
++ export LD_LIBRARY_PATH+
++ PFILE=/u01/app/oracle/product/11.2.0/db_1/dbs/initorcl.ora+
++ SPFILE=/u01/app/oracle/product/11.2.0/db_1/dbs/spfileorcl.ora+
++ SPFILE1=/u01/app/oracle/product/11.2.0/db_1/dbs/spfile.ora+
++ echo ''+
++ echo '/u01/app/oracle/product/11.2.0/db_1/bin/dbstart: Starting up database "orcl"'+
+/u01/app/oracle/product/11.2.0/db_1/bin/dbstart: Starting up database "orcl"+
++ date+
+Tue Apr 20 10:34:25 CDT 2010+
++ echo ''+
++ checkversionmismatch+
++ '[' 11 ']'+
+++ sqlplus -V+
+++ grep 'Release '+
+++ cut '-d ' -f3+
+++ cut -d. -f1+
++ VER10INST=11+
++ '[' 11 -lt 11 ']'+
++ VERSION=undef+
++ '[' -f /u01/app/oracle/product/11.2.0/db_1/bin/sqldba ']'+
++ '[' -f /u01/app/oracle/product/11.2.0/db_1/bin/svrmgrl ']'+
++ SQLDBA='sqlplus /nolog'+
++ STATUS=1+
++ '[' -f /u01/app/oracle/product/11.2.0/db_1/dbs/sgadeforcl.dbf ']'+
++ '[' -f /u01/app/oracle/product/11.2.0/db_1/dbs/sgadeforcl.ora ']'+
+++ ps -ef+
+++ grep -w ora_pmon_orcl+
+++ grep -v grep+
++ pmon=+
++ '[' '' '!=' '' ']'+
++ '[' 1 -eq -1 ']'+
++ '[' 1 -eq 1 ']'+
++ '[' -e /u01/app/oracle/product/11.2.0/db_1/dbs/spfileorcl.ora -o -e /u01/app/oracle/product/11.2.0/db_1/dbs/spfile.ora -o -e /u01/app/oracle/product/11.2.0/db_1/dbs/initorcl.ora ']'+
++ case $VERSION in+
++ sqlplus /nolog+
+SQL*Plus: Release 11.2.0.1.0 Production on Tue Apr 20 10:34:26 2010+
+Copyright (c) 1982, 2009, Oracle. All rights reserved.+
+SQL> + export ORACLE_SID+
++ PATH=/u01/app/oracle/product/11.2.0/db_1/bin:/bin:/usr/bin:/etc:/usr/sbin:/usr/bin:/u01/app/oracle/product/11.2.0/db_1/bin+
++ export PATH+
++ LD_LIBRARY_PATH=/u01/app/oracle/product/11.2.0/db_1/lib:+
++ export LD_LIBRARY_PATH+
++ PFILE=/u01/app/oracle/product/11.2.0/db_1/dbs/initorcl.ora+
++ SPFILE=/u01/app/oracle/product/11.2.0/db_1/dbs/spfileorcl.ora+
++ SPFILE1=/u01/app/oracle/product/11.2.0/db_1/dbs/spfile.ora+
++ echo ''+
++ echo '/u01/app/oracle/product/11.2.0/db_1/bin/dbstart: Starting up database "orcl"'+
+/u01/app/oracle/product/11.2.0/db_1/bin/dbstart: Starting up database "orcl"+
++ date+
+Tue Apr 20 10:34:27 CDT 2010+
++ echo ''+
++ checkversionmismatch+
++ '[' 11 ']'+
+++ sqlplus -V+
+++ grep 'Release '+
+++ cut '-d ' -f3+
+++ cut -d. -f1+
++ VER10INST=11+
++ '[' 11 -lt 11 ']'+
++ VERSION=undef+
++ '[' -f /u01/app/oracle/product/11.2.0/db_1/bin/sqldba ']'+
++ '[' -f /u01/app/oracle/product/11.2.0/db_1/bin/svrmgrl ']'+
++ SQLDBA='sqlplus /nolog'+
++ STATUS=1+
++ '[' -f /u01/app/oracle/product/11.2.0/db_1/dbs/sgadeforcl.dbf ']'+
++ '[' -f /u01/app/oracle/product/11.2.0/db_1/dbs/sgadeforcl.ora ']'+
+++ ps -ef+
+++ grep -w ora_pmon_orcl+
+++ grep -v grep+
++ pmon=+
++ '[' '' '!=' '' ']'+
++ '[' 1 -eq -1 ']'+
++ '[' 1 -eq 1 ']'+
++ '[' -e /u01/app/oracle/product/11.2.0/db_1/dbs/spfileorcl.ora -o -e /u01/app/oracle/product/11.2.0/db_1/dbs/spfile.ora -o -e /u01/app/oracle/product/11.2.0/db_1/dbs/initorcl.ora ']'+
++ case $VERSION in+
++ sqlplus /nolog+
+SQL*Plus: Release 11.2.0.1.0 Production on Tue Apr 20 10:34:27 2010+
+Copyright (c) 1982, 2009, Oracle. All rights reserved.+
+SQL> ERROR:+
+ORA-01031: insufficient privileges+
+SQL> ORA-01031: insufficient privileges+
+SQL> + '[' 0 -eq 0 ']'+
++ echo ''+
++ echo '/u01/app/oracle/product/11.2.0/db_1/bin/dbstart: Database instance "orcl" warm started.'+
+/u01/app/oracle/product/11.2.0/db_1/bin/dbstart: Database instance "orcl" warm started.+
=============
if i run the script as oracle user this is the log:
++ export ORACLE_SID+
++ PATH=/u01/app/oracle/product/11.2.0/db_1/bin:/bin:/usr/bin:/etc:/usr/sbin:/usr/bin:/opt/csw/bin:/usr/openwin/bin:/u01/app/oracle/product/11.2.0/db_1/bin+
++ export PATH+
++ LD_LIBRARY_PATH=/u01/app/oracle/product/11.2.0/db_1/lib:+
++ export LD_LIBRARY_PATH+
++ PFILE=/u01/app/oracle/product/11.2.0/db_1/dbs/initorcl.ora+
++ SPFILE=/u01/app/oracle/product/11.2.0/db_1/dbs/spfileorcl.ora+
++ SPFILE1=/u01/app/oracle/product/11.2.0/db_1/dbs/spfile.ora+
++ echo ''+
++ echo '/u01/app/oracle/product/11.2.0/db_1/bin/dbstart: Starting up database "orcl"'+
+/u01/app/oracle/product/11.2.0/db_1/bin/dbstart: Starting up database "orcl"+
++ date+
+Tue Apr 20 10:39:17 CDT 2010+
++ echo ''+
++ checkversionmismatch+
++ '[' ']'+
++ VERSION=undef+
++ '[' -f /u01/app/oracle/product/11.2.0/db_1/bin/sqldba ']'+
++ '[' -f /u01/app/oracle/product/11.2.0/db_1/bin/svrmgrl ']'+
++ SQLDBA='sqlplus /nolog'+
++ STATUS=1+
++ '[' -f /u01/app/oracle/product/11.2.0/db_1/dbs/sgadeforcl.dbf ']'+
++ '[' -f /u01/app/oracle/product/11.2.0/db_1/dbs/sgadeforcl.ora ']'+
+++ ps -ef+
+++ grep -w ora_pmon_orcl+
+++ grep -v grep+
++ pmon=+
++ '[' '' '!=' '' ']'+
++ '[' 1 -eq -1 ']'+
++ '[' 1 -eq 1 ']'+
++ '[' -e /u01/app/oracle/product/11.2.0/db_1/dbs/spfileorcl.ora -o -e /u01/app/oracle/product/11.2.0/db_1/dbs/spfile.ora -o -e /u01/app/oracle/product/11.2.0/db_1/dbs/initorcl.ora ']'+
++ case $VERSION in+
++ sqlplus /nolog+
+SQL*Plus: Release 11.2.0.1.0 Production on Tue Apr 20 10:39:17 2010+
+Copyright (c) 1982, 2009, Oracle. All rights reserved.+
+SQL> Connected to an idle instance.+
+SQL> ORACLE instance started.+
+Total System Global Area 3374866432 bytes+
+Fixed Size 2152768 bytes+
+Variable Size 1845495488 bytes+
+Database Buffers 1493172224 bytes+
+Redo Buffers 34045952 bytes+
+Database mounted.+
+Database opened.+
+SQL> Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production+
+With the Partitioning, OLAP, Data Mining and Real Application Testing options+
++ '[' 0 -eq 0 ']'+
++ echo ''+
++ echo '/u01/app/oracle/product/11.2.0/db_1/bin/dbstart: Database instance "orcl" warm started.'+
+/u01/app/oracle/product/11.2.0/db_1/bin/dbstart: Database instance "orcl" warm started.+Hi,
thanks for your reply.
I found the problem.
In my script, i change this:
# su - oracle -c "$ORACLE_HOME/bin/dbstart"
by this and its work (without "-")
# su oracle -c "$ORACLE_HOME/bin/dbstart"
Thanks... -
Hi all,
it seems a lot of pentium-m processors (most notably banias and dothans) can safely be undervolted. The beyond kernel has the undervolting patch included to do that. I have written a small startup script that automatically undervolts the cpu when started and reverts it when stopped. It would be nice to include a bunch of possible suggestions for a variety of processors. There's a list of alleged safe voltages over at the gentoo wiki (OK, include normal disclaimers; nothing here is safe, your computer might crash and your dog might get raped if you run the scripts and undervolt your cpu). Anyway, what I'm trying to say is: what do you think? and what can I improve?
The 753 cpu figures that I have are for my own cpu and they work fine so far. If anyone uses any other table they want to recommend for any other cpu, do tell.
/etc/conf.d/undervolt
# voltage table sysfs interface
VTABLE_SYSFS="/sys/devices/system/cpu/cpu0/cpufreq/voltage_table"
# CPU type
CPU_TYPE="753"
#!/bin/bash
. /etc/rc.conf
. /etc/rc.d/functions
. /etc/conf.d/undervolt
# Will add various cases of CPU_TYPE in due time
case "$CPU_TYPE" in
715)
VTABLE="700,700,764,812,924"
753)
VTABLE="828,796,764,732,716,700"
VTABLE=`cat $VTABLE_SYSFS`
esac
case "$1" in
start)
stat_busy "Undervolting CPU"
if [ -e $VTABLE_SYSFS ]; then
cat $VTABLE_SYSFS > /tmp/undervolt.orig
echo $VTABLE > $VTABLE_SYSFS
add_daemon undervolt
stat_done
else
echo "Cannot find $VTABLE_SYSFS. Make sure your running kernel is appropriately patched."
stat_fail
fi
stop)
stat_busy "Reverting to original volt table"
if [ -e /tmp/undervolt.orig ]; then
cat /tmp/undervolt.orig > $VTABLE_SYSFS
rm_daemon undervolt
stat_done
else
echo "You do not seem to have undervolted your CPU yet, cannot find /tmp/undervolt.orig"
stat_fail
fi
echo "usage: $0 {start|stop}"
esacOh, alright, I see. The thing is that the VTABLES I've hardcoded are just VTABLES that people have reported as working well on those particular processors. There's a table of such user reported VTABLES at gentoo's wiki, and I've just used those.
There's really no way to figure out how much a cpu could be undervolted and still function as expected. My ideas was to add some figures that people have tested and tie them to a CPU model that is entered in the conf file. I've just added two CPU types but the idea is to add all of the entries that I can find at the gentoo wiki.
My problem with tying various VTABLES to CPU models is that they might just crash the system anyhow, and that's not very good. Perhaps the VTABLES should be defined in the conf file and the CPU model case just skipped...? Something in the lines of this:
# voltage table sysfs interface
VTABLE_SYSFS="/sys/devices/system/cpu/cpu0/cpufreq/voltage_table"
# CPU type. DISCLAIMER: these VTABLES are reported to work well by some users
# on the coresponding CPUs. They might not be safe for your system and might in worst
# case scenarios cause hard crashes. It is advised that you use [some script] and mprime (?)
# to test your new VTABLE.
#VTABLE="828,796,764,732,716,700" # Pentium-M Ultra Low Voltage (600MHz - 1.2GHz), Model P-M 753
#VTABLE="" # Add more CPU models
#!/bin/bash
. /etc/rc.conf
. /etc/rc.d/functions
. /etc/conf.d/undervolt
case "$1" in
start)
stat_busy "Undervolting CPU"
if [ -e $VTABLE_SYSFS ]; then
cat $VTABLE_SYSFS > /tmp/undervolt.orig
echo $VTABLE > $VTABLE_SYSFS
add_daemon undervolt
stat_done
else
echo "Cannot find $VTABLE_SYSFS. Make sure your running kernel is appropriately patched."
stat_fail
fi
stop)
stat_busy "Reverting to original volt table"
if [ -e /tmp/undervolt.orig ]; then
cat /tmp/undervolt.orig > $VTABLE_SYSFS
rm_daemon undervolt
stat_done
else
echo "You do not seem to have undervolted your CPU yet, cannot find /tmp/undervolt.orig"
stat_fail
fi
echo "usage: $0 {start|stop}"
esac -
Dear All
Can I have a IBM AIX DB Startup Scripts ?
Regards
Lakmalput
Orastart:2:wait:/usr/local/bin/changedbstatus_ora start all FORCE> /dev/console 2>&1
at the end of /etc/inittab
and
/usr/local/bin/changedbstatus_ora stop all FORCE
in /etc/rc.shutdown
where changedbstatus is similar to the following
[haiti]/db_masters $ cat changedbstatus_ora
#!/bin/sh
# usage: changedbstatus_ora start|stop
# This script is used to start or stop ORACLE
# $1 = Start, Stop, or reset_logs
# $2 = SID to start or stop (can be all)
# $3 = FORCE Force a shutdown or startup
# if $2 is not specified it defaults to all. this allows autostart/stop during
# system startup/shutdown
# Written by Graham Myers, Coda plc, (c) 2001
# fn_determine_version
# returns VERSION (7.3.4, 8.1.7, 9.2.0 etc)
fn_determine_version() {
set +x
if [ -f ${ORACLE_HOME}/bin/sqldba ]
then
VERSION=`sqldba command=exit | \
awk '/SQL\*DBA: (Release|Version)/ {split($3, V, ".") ; print V[1]}'`
elif [ -f ${ORACLE_HOME}/bin/svrmgrl ]
then
VERSION=`$ORACLE_HOME/bin/svrmgrl command=exit | awk '
/PL\/SQL (Release|Version)/ { print substr($3,1,5); exit }
/Oracle7 Server (Release|Version)/ { print substr($4,1,5); exit }
/Oracle8i Enterprise Edition (Release|Version)/ { print substr($5,1,5); exit }
/Oracle8i (Release|Version)/ { print substr($3,1,5); exit }'`
else
VERSION=`$ORACLE_HOME/bin/sqlplus -? | awk '/SQL\*Plus: Release/ {print substr($3,1,5); exit }'`
fi
VERSION_MAJOR=`echo ${VERSION} | cut -d. -f1`
# fn_determine_os - determine whioh operating system we're using, returns:
# BITS - no of processor bits 32 or 64
# ORATAB - set to correct path of oratab file
fn_determine_os() {
set +x
ORATAB=/etc/oratab
case `uname` in
SunOS)
BITS=`isainfo -kv | cut -d"-" -f 1`
ORATAB=/var/opt/oracle/oratab;;
HP-UX)
BITS=`/bin/getconf KERNEL_BITS`;;
AIX)
BITS=`/usr/sbin/bootinfo -K`;;
OSF1)
BITS=64;;
esac
# fn_check_status - check instance status
# Returns STATUS (1=running, 0=not running)
fn_check_status() {
set +x
#Check to see if instance shutdown cleanly (or is still running)
STATUS=0
if [ ${VERSION_MAJOR} -ge 8 ]
then
[ "`ps -ef | egrep pmon_${ORACLE_SID} | grep -v grep`" != "" ] && STATUS=1
else
[ -f ${ORACLE_HOME}/dbs/sgadef${ORACLE_SID}.dbf -o \
-f ${ORACLE_HOME}/dbs/sgadef${ORACLE_SID}.ora ] && STATUS=1
fi
# fn_cmd_file - Create a UNIX command script
# inputs $1 command - begin create a new command file
# begin_agent start an angent comamnd file
# command actual comamnds to place in command file
# start_sql run up the relevent SQL processor
# stop_sql exit out of SQL processor
# end finish off command file
fn_cmd_file() {
set +x
case $1 in
begin | begin_agent)
CMD_FILE=/tmp/changedbstatus.tmp$$
RDBMS_HOME=`grep oracle /etc/passwd | awk -F: '{print $6}'`
# Make sure the correct verion of Oracle is defined at login
if [ "$1" = "begin" ]
then
echo "Oracle_${VERSION}(${ORACLE_SID})" > ${RDBMS_HOME}/.rdbms_defaults
else
echo "Oracle_10.1.0(agent)" > ${RDBMS_HOME}/.rdbms_defaults
fi
echo "unset TWO_TASK" >> ${CMD_FILE};;
start_sql)
case "${VERSION}" in
"7") SQL_COMMAND="sqldba";;
"7.3.4"|"8.0.5") SQL_COMMAND="svrmgrl";;
*) SQL_COMMAND="sqlplus /nolog";;
esac
echo "${SQL_COMMAND}<<EOF" >> ${CMD_FILE}
echo "connect / as sysdba" >> ${CMD_FILE};;
command)
shift
echo "$*" >> ${CMD_FILE};;
end_sql)
echo "EOF" >> ${CMD_FILE};;
end)
chmod 755 ${CMD_FILE};;
esac
# fn_execute_cmd_file
# PLEASE NOTE the strange way of eching the session to the display rather than
# using tee. For some reason agentctl does not "let go" of the session and
# tee hangs. This is a documented "non-bug" for tnslsnr on 8i but nobody has
# has reported it for agentctl for 9i
# $1 should be a message to write to the screen prior to execution so the user
# has an indication something is happening
fn_execute_cmd_file() {
set +x
echo $1
su - oracle -c ${CMD_FILE} > ${CMD_FILE}.log 2>&1
RETURN_STATUS=$?
cat ${CMD_FILE}.log
# Scrap the defaults file after the command script has run
rm ${RDBMS_HOME}/.rdbms_defaults ${CMD_FILE}
# fn_reset_logs - rename existing log, create a new one, and purge old ones
# if $1 is non blank then it is assumed to be embedded in another command
# and so will not start a new command file (or execute it)
fn_reset_logs() {
set +x
if [ "$1" = "" ]
then
fn_cmd_file begin
fn_cmd_file command set +x
fi
if [ ${VERSION_MAJOR} -ge 9 ]
then
fn_cmd_file command "dmp_dest=\`grep background_dump_dest $PFILE|awk -F\"'\" '{print \$2}'\`"
else
fn_cmd_file command "dmp_dest=\`grep background_dump_dest $PFILE|awk '{print \$3}'\`"
fi
fn_cmd_file command "cd \${dmp_dest}"
fn_cmd_file command "dmp=alert_\${ORACLE_SID}.log"
fn_cmd_file command "new_dmp=\${dmp}.\`date +%y%m%d\`"
fn_cmd_file command "if [ -f \${new_dmp}.Z ]"
fn_cmd_file command "then"
fn_cmd_file command " zcat \${dmp} >> \${new_dmp}"
fn_cmd_file command " rm \${dmp} \${new_dmp}.Z"
fn_cmd_file command "else"
fn_cmd_file command " mv \${dmp} \${new_dmp}"
fn_cmd_file command "fi"
fn_cmd_file command "compress \${new_dmp}"
fn_cmd_file command "find ./ -name "\${dmp}.*" -mtime +30 -print -exec rm {} \\\+"
fn_cmd_file command "find ./ -name "/tmp/changdbstatus*" -mtime +2 -print -exec rm {} \\\+"
if [ "$1" = "" ]
then
fn_cmd_file end
fn_execute_cmd_file "reseting log files..."
fi
# fn_start_agent - Start the 10g intelligent agent
# This is only done once and only if a 64-bit server
fn_start_agent() {
set +x
fn_cmd_file begin_agent
fn_cmd_file command emctl start agent
fn_cmd_file end
fn_execute_cmd_file "Starting Intelligent Agent..."
# fn_stop_agent - Stop the 9i intelligent agent
# This is only done once and only if 64-bit server
fn_stop_agent() {
set +x
fn_cmd_file begin_agent
fn_cmd_file command emctl stop agent
fn_cmd_file end
fn_execute_cmd_file "Stopping Intelligent Agent..."
# fn_start_database - Start database
fn_start_database() {
set +x
fn_cmd_file begin
fn_cmd_file command set +x
fn_reset_logs include
fn_determine_listener
[ "`ps -ef | egrep ${LISTENER_NAME} | grep -v grep`" = "" ] && fn_cmd_file command lsnrctl start ${LISTENER_NAME}
fn_cmd_file start_sql
fn_cmd_file command startup
fn_cmd_file end_sql
#We now use an Oracle 10g Enterprise manager which does not support Oracle 8i agents so don't start them
# if [ ${VERSION_MAJOR} -lt 9 ]
# then
# # start the intelligent agent and data gatherer
# fn_cmd_file command vppcntl -start
# fn_cmd_file command lsnrctl dbsnmp_start
# fi
fn_cmd_file end
fn_execute_cmd_file "Starting instance ${ORACLE_SID}..."
# fn_stop_database - Stop database $1 passed as abort if required
fn_stop_database() {
set +x
fn_cmd_file begin
if [ "${ALL_DATABASES}" = "Y" ]
then
#We now use an Oracle 10g Enterprise manager which does not support Oracle 8i agents so they haven't been started
# if [ ${VERSION_MAJOR} -lt 9 ]
# then
# # stop the data gatherer and agent
# fn_cmd_file command vppcntl -stop
# fn_cmd_file command lsnrctl dbsnmp_stop
# fi
fn_determine_listener
[ "`ps -ef | egrep ${LISTENER_NAME} | grep -v grep`" != "" ] && fn_cmd_file command lsnrctl stop ${LISTENER_NAME}
fi
fn_cmd_file start_sql
fn_cmd_file command shutdown $1
fn_cmd_file end_sql
fn_cmd_file end
fn_execute_cmd_file "Stopping instance ${ORACLE_SID}..."
# fn_determine_listener - work out listener name
# For 8i it will be listener_817
# For 9i it will be listener_<hostname> as we use MTS
# on 9i and only need the listener for OEM.
fn_determine_listener() {
set +x
LISTENER_NAME=`grep "SID_LIST_" ${TNS_ADMIN:-$ORACLE_HOME/network/admin}/listener.ora | \
cut -d "_" -f 3- | cut -d "=" -f 1`
(trap 'exit' 1 2 3
set +x
fn_determine_os
ORIGINAL_ORACLE_HOME=${ORACLE_HOME}
ORIGINAL_ORACLE_PATH=${ORACLE_PATH}
ORIGINAL_LD_LIBRARY_PATH=${LD_LIBRARY_PATH}
ORIGINAL_PATH=${PATH}
if [ "$3" = "FORCE" ]
then
FORCE=Y
else
FORCE=N
fi
if [ "$2" = "all" -o "$2" = "" ]
then
FILTER="tee /dev/null"
ALL_DATABASES=Y
#if $2 is null then we are in system startup/shutdown - so force db start/stop
# this will get around any rogue files maybe due to a previous crash
[ "$2" = "" ] && FORCE=Y
#if we are starting all databases then assume we are starting everthing fresh
# so start the intelligent agent
if [ \( "$1" = "start" -o "$1" = "START" \) -a "${BITS}" = "64" ]
then
fn_start_agent
fi
else
FILTER="grep ^$2:" #Only apply filter if not all
ALL_DATABASES=N
fi
grep -v "^#" ${ORATAB} | ${FILTER} | awk -F: '{print $1,$2,$3}' | \
while read ORATAB_SID ORATAB_HOME ORATAB_START
do
ORACLE_SID=${ORATAB_SID} ;export ORACLE_SID
ORACLE_HOME=${ORATAB_HOME} ;export ORACLE_HOME
PATH=$ORACLE_HOME/bin:/bin:/usr/bin:/etc ;export PATH
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${ORACLE_HOME}/lib ;export LD_LIBRARY_PATH
fn_determine_version #Work out which version of Oracle is required
if [ ${VERSION_MAJOR} -ge 9 ]
then
PFILE=${ORACLE_HOME}/dbs/spfile${ORACLE_SID}.ora
else
PFILE=${ORACLE_HOME}/dbs/init${ORACLE_SID}.ora
fi
if [ -f ${PFILE} ]
then
fn_check_status #See if instance is already running
case $1 in
start | START )
if [ ${STATUS} -eq 1 ]
then
if [ "${FORCE}" = "Y" ]
then
echo Instance ${ORACLE_SID} already running - forcing shutdown
fn_stop_database abort
else
echo Instance ${ORACLE_SID} already running
continue
fi
fi
if [ "${ALL_DATABASES}" = "Y" -o \( "${ORATAB_START}" = "Y" -a "${ALL_DATABASES}" = "N" \) ]
then
fn_start_database
if [ ${RETURN_STATUS} -eq 0 ]
then
echo "Instance ${ORACLE_SID} started."
else
echo "Instance ${ORACLE_SID} NOT started."
fi
else
echo "Instance ${ORACLE_SID} NOT started."
fi;;
stop | STOP)
if [ ${STATUS} -eq 0 ]
then
if [ "${FORCE}" = "Y" ]
then
echo Instance ${ORACLE_SID} already shutdown - forcing shutdown
fn_stop_database abort
else
echo Instance ${ORACLE_SID} already shutdown
continue
fi
else
fn_stop_database IMMEDIATE
if [ ${RETURN_STATUS} -eq 0 ]
then
echo "Instance ${ORACLE_SID} shutdown."
else
echo "Instance ${ORACLE_SID} NOT shutdown."
fi
fi;;
reset_logs)
fn_reset_logs;;
esac
else
echo ""
echo "Cant find init file for instance ${ORACLE_SID}."
fi
done
#if we are shutting down eveything then close down the agents too
if [ "${ALL_DATABASES}" = "Y" -a \( "$1" = "stop" -o "$1" = "STOP" \) -a ${BITS} = 64 ]
then
fn_stop_agent
fi
ORACLE_HOME=${ORIGINAL_ORACLE_HOME};export ORACLE_HOME
ORACLE_SID=${ORIGINAL_ORACLE_PATH};export ORACLE_SID
LD_LIBRARY_PATH=${ORIGINAL_LD_LIBRARY_PATH};export LD_LIBRARY_PATH
PATH=${ORIGINAL_PATH};export PATH
for VARIABLE in FILTER ORATAB_HOME ORATAB_SID ORATAB_START STATUS ORATAB \
PFILE SQL_COMMAND VERSION RETURN_STATUS RDBMS_HOME \
LISTENER_NAME FORCE ALL_DATABASES VERSION_MAJOR \
BITS LISTENER
do
unset ${VARIABLE}
done
unset VARIABLE) 2>&1 | tee /tmp/changedbstatus_ora.log
regards
Graham -
[SOLVED] Why some commands run properly in startup script others don't
I am trying to finish setting up my MythTV box. I have the following commands to run at startup:
#!/bin/sh
# Stop spamming dmesg
echo -n 0000:00:06.1 > /sys/bus/pci/drivers/ehci_hcd/unbind
# Enable wake from remote
echo enabled > /sys/bus/usb/devices/4-5/power/wakeup
# Link optical drive to /dev/dvd (needed for myth)
if [ ! -e /dev/dvd ]; then ln -s /dev/cdrom /dev/dvd; fi
# Start LIRC
echo lirc > /sys/class/rc/rc0/protocols
ln -sf /run/lirc/lircd /dev/lircd
lircd -d /dev/lirc0 /etc/lirc/hipermc
# Start mythbackend
mythbackend &
# Start LCD server
LCDd &
I have tried making this part of rc.local and also as a startup item in XFCE (with script called using passwordless sudo since it requires root permissions). In each case, only some of the commands run properly (the dmesg, wake from remote, and start LIRC sections). The other commands don't seem to work. However if I run the script manually after the computer has finished booting, everything works perfectly. Can anyone help me figure out what's going wrong?
It seems like path is already set since some commands do work without the full pathname. Also please don't suggest using systemd for starting the daemons - it does not work for me with LIRC or lcdproc and there is a driver bug with my hardware that keeps me from using the mythbackend systemd service.
Thanks in advance for the help.
Last edited by mosquitogang201 (2012-12-16 14:42:11)The exec command was what I needed. Was able to follow the error messages to find out the command im using under "stop spamming dmesg" was messing everything else up. Also I am running systemd - just not using it to start these items since the systemd service files weren't working reliably.
Anyways this brings me to another question - is there a more elegant way to stop dmesg from getting spammed? About 5 times per second I get the error
hub 2-4:1.0: unable to enumerate USB device on port 3
which makes it very difficult to look through dmesg logs to find an actual problem.
EDIT: Just needed to add the sleep command after the dmesg section to give the kernel enough time to reload using ohci_hcd. Now script is working perfectly. Marking as SOLVED.
Last edited by mosquitogang201 (2012-12-16 14:48:47) -
Admin console VS Startup Script
Hi!
I'm very confused about this subject. I understand that Admin console uses Node Manager to start/stop managed server, but i dont't understand why using Admin Console the Managed Server is started with JRockit and via startup script is started with Sun JDK.
Thanks a lot
Best regardsHi,
When starting the managed servers from the admin console, you are indeed using the Node Manager. But in this scenario, the NM is using the properties defined in the startup properties for each of the managed servers, not the properties defined in the startup scripts. If you want Node Manager to use the startup scripts when starting the managed servers, you must change the value of the "StartScriptEnabled" parameter to "true" in the /wlserver/common/nodemanager/nodemanager.properties file.
I hope this helps.
Regards!
Edited by: Radu Dobrinescu on Dec 14, 2010 1:23 AM -
ASA appears to randomly stop forwarding/routing traffic
Hi guys, got a curly one -
Our ASA appears to randomly stop forwarding traffic between interfaces. Traffic does not forward for several minutes, then it starts again. After a while the traffic stops again for a few minutes, and the cycle repeats.
If you are on a directly connected network you can still ping the ASAs local interface (I have ICMP turned on for testing). However you cannot ping the ASA from any remote network. I can ping or trace all the way up to the last hop without an issue. You also cannot ping across the ASA to servers on the other side, even from the immediate next hop (which as I mentioned above, still works) .
This would appear to point to a routing problem? Strangely, routing still functions for the management network - I have had no problems reaching the command line from elsewhere in the network.
Has anyone encountered something similar to this before?
Relevent ASA configuration commands below:
interface GigabitEthernet0/1
description DMZ Trunk interface
no nameif
no security-level
no ip address
interface GigabitEthernet0/1.220
description F5 DMZ Internal
vlan 220
nameif DMZInternal
security-level 50
ip address 172.17.20.1 255.255.255.0 standby 172.17.20.2
interface GigabitEthernet0/2
nameif Internal
security-level 100
ip address 172.17.99.254 255.255.255.0 standby 172.17.99.253
icmp permit any DMZInternal
icmp permit any Internal
route management 0.0.0.0 0.0.0.0 172.17.42.1 1
route Internal 172.16.0.0 255.240.0.0 172.17.99.1 1
EDIT: sorry forgot to post -
#sh ver
Cisco Adaptive Security Appliance Software Version 8.3(2)
Device Manager Version 6.4(1)
Compiled on Fri 30-Jul-10 17:49 by builders
System image file is "disk0:/asa832-k8.bin"
Config file at boot was "startup-config"Hi Dan - I suggest you ask this in the forum.
hth
Herbert -
Mysql startup line in server startup script
I am trying to create a cron job for my backup of MySQL data. This seemed simple on linux (just a start and stop mysql statement) But I can't seem to figure it out on Mac Server 10.5 I have tried the mysql.server and MySQLCOM but that does not work.
Where is the Mac Server OSX main startup script(s) so I can copy the line that starts MySQL?
Cheers!Hi,
mysqldump should work. I found it referenced in CCC and elsewhere
http://www.vbulletin.com/forum/showthread.php?t=2978. Unless your database is huge, it does not require stopping/starting the database manually.
Backup the entire database with:
mysqldump -u user_name -p your_password database_name > File_name.sql
Restore with:
mysql - u user_name -p your_password database_name < File_name.sql
HTH,
Harry
Maybe you are looking for
-
My iTunes Match hasn't been working for a couple of days. It said I had exceeded the song limit, so I was going through my library and clearing out some songs. When I deleted the songs, the box that asked if I wanted to delete them from the cloud was
-
Printing problems in Mavericks
In Mavericks, my HP laser printers (P2015dn and 3600n) won't print properly from PDF files accessed online -- they print, on one page, 19 miniatures of the lower righthand corner of the page. If I download the PDFs from the net and print from the do
-
White screen instead of calendar events and To Do list?
When I click on To Do, or click on a day in Calendar, none of the things from iCal on my iMac appear. Is there something I've overlooked that I have to do to get them to appear on my iPod?
-
Configing Windows pcs with bonjour for network printing help
bonjour downloads and installs correctly runs setup fine, double click icon bonjour for windows connects and see the printers printers install drivers sucessfully when doing test page thru windows printer configuration -it then outputs code below exa
-
hi all, I am using oracle 10g. I am new to UTL_FILE. i got this procedure from site. declare output utl_file.file_type; begin output := utl_file.fopen( 'c:\temp\', 'emp1.slk', 'w',32000 ); owa_sylk.show( p_file => output, p_query => 'select empno id,