Any script to start Replication and Caching automatically?

yes, I know there're two stored procedures to start Replication and Caching, ie. call ttRepStart() and
call ttCacheStart().
but, is there any methods, like unix shell script, to start them easily? i can't find on the installation provided.
thanks!

thanks! wrote it by myself:
#!/bin/sh
echo "starting ttCacheStart"
LD_LIBRARY_PATH=/local/oracle/product/10.2.0/lib:/home/oracle/TimesTen/tt60/lib; export LD_LIBRARY_PATH
TT_BIN=/home/oracle/TimesTen/tt60/bin
#$TT_BIN/ttIsql -v 0 -connstr dsn=TT_tt60 -f cachestart.sql
$TT_BIN/ttAdmin -cachestart dsn=TT_tt60
returnCode=$?
echo "return code: $returnCode"
if test $returnCode=0 || test $returnCode=5
then echo "Successfully started Cache"
exit 0
else echo "Failed in starting Cache"
exit -1
fi
exit $returnCode

Similar Messages

  • Shell script to start, stop and restart a JAR

    Hi everyone,
    Does anyone have idea to write a shell script to start, stop and restart a JAR under linux? it can indicate a method or parameter? Thanks!
    this JAR inculdes a class with main method like this:
    public class Client(){
      public Client(String name){
      public void stopClient(){
      public static void main(String[] args){
         new Client("/tmp/text.log");
    }

    Does anyone have idea to write a shell script to
    start, stop and restart a JAR under linux? That part isn't really clear.
    Start would be java -jar myjar.jar.
    Stop could either be kill, which kills the whole process; kill -TSTP, which suspends the process, or some application-specific communication such as sending something over a port; or putting something into a file or something.
    Restart could just be the same as start (if stop is just kill); kill -CONT, if stop was kill -TSTP; or some other app-specific communication.

  • Shell script to start, stop and restart a JAR under linux

    Hi everyone,
    Does anyone have idea to write a shell script to start, stop and restart a JAR under linux? it can also indicate a method or parameter? Thanks!
    this JAR inculdes a class with main method like this:
    public class Client(){
    public Client(String name){
    public void stopClient(){
    public static void main(String[] args){
    new Client("/tmp/text.log");
    }

    Does anyone have idea to write a shell script to
    start, stop and restart a JAR under linux? That part isn't really clear.
    Start would be java -jar myjar.jar.
    Stop could either be kill, which kills the whole process; kill -TSTP, which suspends the process, or some application-specific communication such as sending something over a port; or putting something into a file or something.
    Restart could just be the same as start (if stop is just kill); kill -CONT, if stop was kill -TSTP; or some other app-specific communication.

  • Scripting the start of cluster-caching

    Hello,
    im a SAP Portal administrator. In the Portal runs a Jive Froumssoftware with tangosol coherence caching feature. In the forumssoftware I can activate the clsuter caching, but after a serverrestart i have to activate it again.
    I know this is not an SAP Forum oder Jive Forum but I want to know how i can script the activation of the cluster?
    I think there must be a way to make ist via command line. In wich class or jar file i can have a look to start the cluster-caching by scripting? E.g: coherence.jar?
    Is there a way like: java -cp tangosol.jar com.tangosol.net.MulticastTest (run Multicasttest) to activate multicast?
    thx and sry if i post wrong

    I am not knowledgeable about the Jive Forums cluster administration. (I'm pretty sure that these forums run on Jive, but they're managed by our IT organization.)
    I would suggest posting the question on the Jive support forums:
    http://www.jivesoftware.com/jivespace/community/support/jive_forums?view=discussions
    Peace,
    Cameron Purdy | Oracle Coherence

  • Shell script to start forms and reports server on reboot

    Does anyone have on shell script to automatically start up the forms and reports server on unix after a reboot?
    thanks much

    I also recompiled the "test.fmb" that came with the 10g Forms and Server on my windows xp machine and when I downloaded it back to the Linux Forms and Server machine, it loss the functionality of the "OK" button which is suppose to perform "exit_form" when pressed.
    BTW, I am using 10G developer suite on windows xp.

  • After syncing Firefox with my Android phone, Google calendar is not functional. It hangs on "Loading" and will not allow updates or edits. Calendar works in IE, just not Firefox on any computer. Clearing cookies and cache no help.

    I synced Firefox with my Droid Razr Maxx Firefox. Now Google Calendar hangs on "Loading" and will not function. Clearing cache and cookies does not help. Works the same on any computer Firefox. But Gmail works fine and Calendar is okay under other browsers.

    Do a malware check with some malware scanning programs on the Windows computer.<br />
    You need to scan with all programs because each program detects different malware.<br />
    Make sure that you update each program to get the latest version of their databases before doing a scan.<br /><br />
    *http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    *http://www.superantispyware.com/ - SuperAntispyware
    *http://www.microsoft.com/security/scanner/en-us/default.aspx - Microsoft Safety Scanner
    *http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    *http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    *http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • FWSM - Is there any script to analyze syslog and/or optimize rules?

    Hi,
    is there any program/script that optimize FWSM rules?
    For example:
    - check all the objects that are not being used
    - check rules that have no use or impact (can be remove because there is another permit rule that is already doing the job)
    - etc...
    Is there any program/script that analyzes FWSM syslog information and generates reports about all the traffic that has been denied or allowed? For example:
    - To many DNS check that comes from a specific host
    - To many ping denial from a specific source (ddos)
    - etc...
    Thanks,

    This will give you % free per tablespace
    SELECT files.tablespace_name Tablespace,round(files.sze/1024/1024) "Size",
    round(free.free/1024/1024) "Free", round((free.free/files.sze) * 100) "Pct Free"
    FROM
    (SELECT tablespace_name, sum(bytes) sze FROM dba_data_files
    GROUP BY tablespace_name) files,
    (SELECT tablespace_name,sum(bytes) free FROM dba_free_space
    GROUP BY tablespace_name) free
    WHERE files.tablespace_name=free.tablespace_name

  • J2ME: Start browser and URL automatically

    I need to write a small program with J2ME to start browser on the phone and point the URL to the browser automatically.
    Anybody has an example or let me know the function to help?

    Yes you can. Use the platformRequest() method (MIDP 2.0). Visit the link below:
    http://developers.sun.com/techtopics/mobility/midp/ttips/platformRequest/index.html

  • Shell script for start stop and restart standard

    Hi,
    I'd like to know if there's a standard template for shellscript for a kind of stop|start|restart execution of a server or stub.
    If you have any link or some info that explain how to do that nicely it would be nice!
    Thank you

    There's plenty of live examples in /etc/rc.d

  • Print Que starts, idles and stops with USB printers

    I'm trying to print to a HP C3150 USB printer from a G4 laptop with 10.4.9. I print any file, it starts, idles and stops. It also does this with my Dymo 330. I reset the print que several times, repaired the disk permissions, reboot everything and reinstalled my USB printers with the most current drivers available and it still does the same thing. I am able to print to network printers via ethernet without problems. I grabbed current text from Console Utilty application to see if anyone has a solution:
    Apr 11 16:34:58 Computer /Applications/Preview.app/Contents/MacOS/Preview: cmsDataProviderGetBytes : CMCopyProfile: returned -4204
    Apr 11 16:34:58 Computer /Applications/Preview.app/Contents/MacOS/Preview: CMSValidateProfile : Unable to read ICC profile
    Apr 11 16:34:59 Computer /Applications/Preview.app/Contents/MacOS/Preview: cmsDataProviderGetBytes : CMCopyProfile: returned -4204
    Apr 11 16:34:59 Computer /Applications/Preview.app/Contents/MacOS/Preview: CMSValidateProfile : Unable to read ICC profile
    dyld: Library not loaded: /Library/Frameworks/HPDeviceModel.framework/Versions/1.1/HPDeviceModel
    Referenced from: /Library/Printers/hp/Utilities/hpSuppliesTool.app/Contents/MacOS/hpSuppliesTool
    Reason: image not found
    Apr 11 16:35:03 Computer crashdump[351]: hpSuppliesTool crashed
    Apr 11 16:35:03 Computer crashdump[351]: crash report written to: /Users/bill/Library/Logs/CrashReporter/hpSuppliesTool.crash.log
    Thanks
      Mac OS X (10.4.9)  

    Two generic things to try:
    Download the 10.4.9 Combo updater from Apple and re-update with that.
    Reset Printing System, a menu choice in Printer Setup; then restart the Mac and re-Add the printer(s).
    If these don't work, we're talking reinstall OS X using the Archive & Install option in the installer.

  • Any way to write code to cache the contents of the scripts menu? (or force ScriptsMenu plugin start)

    In the scripting forum I created the thread Adding custom scripts to actions revisited - Partial workaround
    Basically, you can create actions with keyboard shortcuts to execute custom javascript/vbscript, etc. and successfully reload them after restarting Illustrator but only if the user manually navigates to File->Scripts before manually loading an actions (.aia) file
    Any script menu items added to actions will be stripped from the custom actions when Illustrator is restarted because, I believe, the script menu items are not cached and are therefore invalid when the actions are automatically reloaded.
    Obviously, I'd prefer not requiring the user to navigate to the scripts menu and replace the actions every time Illustrator is started.
    Does anyone have any ideas on a way to write code so that Illustrator caches the contents of the scripts menu? Preferably this would be before the actions are loaded so they don't get invalidated and need to be reloaded in the first place. A keyboard macro would likely execute to late to be of much help.
    If anyone knows anything about the actual mechanism of caching the scripts menu or knows of anything else relevent to this please respond.
    Thanks!
    Edit: The menu is created in the Scripts Menu plugin (ScriptsMenu.aip). Perhaps there is no "cache" of the menu and the plugin just doesn't perform the startup until you browse to the File->Scripts menu?
    AIMenuGroups.h has the global definition of the group:
    #define kScriptsMenuGroup         "ScriptsMenuGroup"

    Have you looked at stored outlines ? They are for plan stability.
    Also you may want to look little deep on where your statistics are going wrong.
    I would recommend using below hint and checking where is difference in estimated(E-Rows) and actual number(A-rows) of rows. This may point out some incorrect stats.
    e.g.
    select /*+ gather_plan_statistics */ * from dual;
    D
    X
    select * from table(dbms_xplan.display_cursor(null,null,'ALLSTATS LAST'));
    Plan hash value: 272002086
    | Id | Operation | Name | Starts | E-Rows | A-Rows | A-Time | Buffers |
    | 1 | TABLE ACCESS FULL| DUAL | 1 | 1 | 1 |00:00:00.01 | 3 |
    ------------------------------------------------------------------------------------

  • Order of start infrastructure and Portal - SCRIPT

    I replied to someone's query on this topic, so I thought it might be useful for others as well. The script that I wrote in June 2002 for an article in oracle magazine.
    It is simple & it works, in a way tells you status of the
    components as well.
    Put it an a file chmod to allow execute ...
    I have included the debug in the script as well.
    Hope this helps.
    Sunder Aswani (an Oracle & Portal DBA consultant in London)
    # Enter the shell type here. Trnsf. /opt/oracle to mid tier.
    # Script to start infra/portal on a single or with mid tier system
    # By Sunder Aswani (An oracle & Portal DBA consultant in London)
    # Version 1.0 dated 20th June 2002.
    $ORACLE_HOME/bin/oidctl connect=iasdb server=oidldapd instance=1 start
    $ORACLE_HOME/bin/oidctl connect=iasdb server=oidldapd instance=2 start
    $ORACLE_HOME/dcm/bin/dcmctl start -ct ohs
    $ORACLE_HOME/bin/oidmon start
    $ORACLE_HOME/dcm/bin/dcmctl start oc4j
    $ORACLE_HOME/opmn/bin/opmnctl startall
    $ORACLE_HOME/bin/emctl start
    /opt/oracle/portal/dcm/bin/dcmctl start -ct ohs
    /opt/oracle/portal/opmn/bin/opmnctl startall
    ps -ef|grep http
    $ORACLE_HOME/dcm/bin/dcmctl getstate -v
    $ORACLE_HOME/ldap/bin/ldapcheck
    ## Each of these processes will have an associated log. /Given the UNIX example:
    ## Process oidmon is Alive as PID 1035 -->oidmon.log (guardian process)
    ## Process oidldapd is Alive as PID 1051 -->oidldapd01.log (ldap dispatcher)
    ## Process oidldapd is Alive as PID 1043 -->oidldapd01s1043.log (ldap server)
    ## Not Running ---- Process oidrepld -->oidrepld01xxxx.log (if replication)
    ## $ORACLE_HOME/bin/odisrvreg -h sun.portal.com -p 4032 -D "cn=orcladmin" -w ias_admin1
    ## It is best to clean out the existing log files so we can view the results of your test. Please do
    the following:
    ## a. stop all oid processes
    ## b. repeat Step 1 until you no longer see the OID processes
    ## c. clean out all existing logfiles in the $ORACLE_HOME/ldap/log
    ## d. restart the oid processes with extended tracing...
    ## oidmon connect=<SID> start
    ## $ORACLE_HOME/bin/oidctl connect=<SID> server=oidldapd instance=1 flags=" -port <PORT> -host <HOST>
    -debug <DEBUG-LEVEL>" start
    ## $ORACLE_HOME/bin/oidctl connect=iasdb server=oidldapd instance=1 flags=" -port 4032 -h sun.portal.c
    om -debug 65535" start
    ##DEBUG-LEVELS for the oidctl command:
    ### 1 = Trace function calls
    ## 2 = Debug packet handling
    ### 4 = Heavy trace debugging
    ## 8 = Connection Management
    ## 16 = Print out packets sent and received
    ## 32 = Search filter processing
    ## 64 = Configuration file processsing
    ## 128 = Access control list processing
    ## 256 = Stats log connections/operations/results
    ## 512 = Stats log entries sent
    ## 1024 = Print communication with the back-end
    ## 2048 = Print entry parsing debugging
    ## 4096 = Schema-related debugging
    ##32768 = Replication Specific debugging
    ## Bind the ports as follows:
    $ORACLE_HOME/bin/ldapbind -h sun.portal.com -p 4032 -D cn=orcladmin -w ias_admin1
    webcachectl start
    ## /opt/oracle/portal/webcache/bin/webcachectl start (SHOULD say already running IF NO MID TIER)

    Have been trying a bit more and found out how to access the chart to a certain extent. It seems to be possible the change the X-Axis Values via:
    chart.axes(xlcategory).minimumscale
    chart.axes(xlcategory).maximummscale
    Are however not able to find values that really will show up, have tried numerous formats, and by using just simple numbers like for example 100 the code runs, but the X-axis values dissapears instead of changing.
    The question is if it is at all possible to then also change the actual data in the chart to show the weeks that are entered. No use of changing the axis values without changing the data for the weeks as well. Have not been able to find anything about accessing
    the data values, perhaps they are not accessible? From within MS Project it is not possible to Clock on the "edit source data" in the menu which appears when right clicking on the chart.
    Any ideas are welcome.
    Kind regards //Anders

  • I seem to have inherited a lot of issues from previous macs i've had over the years resulting in my present iMac (21" 2.9Ghz i5) behaving strangely! Its slow on start up, and safari settings seem to reconfigure themselves ?? Any idea's ??

    iMac 2.9Ghz intel i5
    8GB
    21.5"
    Data migrated from a macbook pro and previously from an older iMac.
    Can I restore to a clean start-up and re-install apps (docs, photo's music etc)from time machine without
    bringing the issues that are causing a few issues.
    ie Some web sites will not open ( I have checked that the sites are live).
    Slow start up.
    Some web sites ask me to check cookies- I've not changed them, and the problem is not constant ? (Safari is main browser).
    Any advice gratefully received.
    Tony

    1. This procedure is a diagnostic test. It changes nothing, for better or worse, and therefore will not, in itself, solve the problem.
    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. 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. All it does is to collect information about the state of the computer. That information goes nowhere unless you choose to share it. However, you should be cautious about running any kind of program (not just a shell script) at the request of a stranger on a public message board. If you have doubts, search this site for other discussions in which this procedure has been followed without any report of ill effects. If you can't satisfy yourself that the instructions are safe, don't follow them. Ask for other options.
    Here's a summary of what you need to do, if you choose to proceed: Copy a line of text from this web page into the window of another application. Wait for the script to run. It usually takes a few minutes. Then paste the results, which will have been copied automatically, back into a reply on this page. The sequence is: copy, paste, wait, paste again. Details follow.
    4. You may have started the computer in "safe" mode. Preferably, these steps should be taken in “normal” mode. 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.
    5. 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.
    6. 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; clear; Fb='%s\n\t(%s)\n'; Fm='\n%s\n\n%s\n'; Fr='\nRAM details\n%s\n'; Fs='\n%s: %s\n'; Fu='user %s%%, system %s%%'; AC="com.autodesk.AutoCAD  com.google.GoogleDrive"; H='^[[:space:]]*((127\.0\.0\.1|::1|fe80::1%lo0)[[:space:]]+local|(255\.){3}255[[:space:]]*broadcast)host[[:space:]]*$'; NS=networksetup; PB="/usr/libexec/PlistBuddy -c Print"; A () { [[ a -eq 0 ]]; }; M () { find -L "$d" -type f | while read f; do file -b "$f" | egrep -lq XML\|exec && echo $f; done; }; AT () { o=`file -b "$1" | egrep -v '^(A.{16}t$|cann)'`; Ps "${1##*/} format"; }; Pc () { o=`grep -v '^ *#' "$2"`; l=`wc -l <<< "$o"`; [[ l -gt 25 ]] && o=`head -n25 <<< "$o"`$'\n'"[$((l-25)) more line(s)]"; Pm "$1"; AT "$1"; }; Pm () { [[ "$o" ]] && o=`sed -E '/^ *$/d;s/^ */   /;s/[-0-9A-Fa-f]{22,}/UUID/g;s/(ochat)\.[^.]+(\..+)/\1\2/;/Shared/!s/(\/Users\/)[^/]+/\1-/g' <<< "$o"` && printf "$Fm" "$1" "$o"; }; Pp () { o=`$PB "$2" | awk -F'= ' \/$3'/{print $2}'`; Pm "$1"; }; Ps () { o=`echo $o`; [[ ! "$o" =~ ^0?$ ]] && printf "$Fs" "$1" "$o"; }; R () { o=; [[ r -eq 0 ]]; }; SP () { system_profiler SP${1}DataType; }; id -G | grep -qw 80; a=$?; A && sudo true; r=$?; t=`date +%s`; clear; { A || echo $'No admin access\n'; A && ! R && echo $'No root access\n'; SP Software | sed -n 's/^ *//;5p;6p;8p'; h=(`SP Hardware | awk '/ Id/{print $3}; /Mem/{print $2}'`); o=$h; Ps "Model"; o=$((h[1]<4?h[1]:0)); Ps "Total RAM (GB)"; o=`SP Memory | sed '1,5d;/[my].*:/d'`; [[ "$o" =~ s:\ [^O]|x([^08]|0[^2]|8[^0]) ]] && printf "$Fr" "$o"; o=`SP Diagnostics | sed '5,6!d'`; [[ "$o" =~ Pass ]] || Pm "POST"; p=`SP Power`; o=`awk '/Cy/{print $NF}' <<< "$p"`; o=$((o>=300?o:0)); Ps "Battery cycles"; o=`sed -n '/Cond.*: [^N]/{s/^.*://p;}' <<< "$p"`; Ps "Battery condition"; for b in FireWire Thunderbolt USB; do o=`SP $b | sed -En '/:$/{s/ *:$//;x;s/\n//;s/\n.*//;/\)/p;};/^ *(V.+ [0N]|Man).+ /{s/ 0x.... //;s/[()]//g;s/(.+: )(.+)/ (\2)/;H;};/Apple|Broadcom|Genesy|Intel|SMSC/{s/.//g;h;}'`; Pm $b; done; o=`pmset -g therm | sed 's/^.*C/C/'`; [[ "$o" =~ No\ th|pms ]] && o=; Pm "Thermal conditions"; o=`pmset -g sysload | grep -v :`; [[ "$o" =~ =\ [^GO] ]] || o=; Pm "System load advisory"; o=`nvram boot-args | awk '{$1=""; print}'`; Ps "boot-args"; fdesetup status | grep -q On && o=on || o=; Ps "FileVault"; a=(/ ""); A=(System User); for i in 0 1; do o=`cd ${a[$i]}L*/Lo*/Diag* || continue; for f in *.{cr,h,pa,s}*; do [[ -f "$f" ]] || continue; d=$(stat -f%Sc -t%F "$f"); [[ "$f" =~ h$ ]] && grep -lq "^Thread c" "$f" && f="$f *"; echo "$d ${f%%_2*} ${f##*.}"; done | sort | tail`; Pm "${A[$i]} diagnostics"; done; grep -lq '*$' <<< "$o" && printf $'\n\t* Code injection\n'; o=`syslog -F bsd -k Sender kernel -k Message CReq 'caug|GPU |hfs: Ru|last value [1-9]|n Cause: -|NVDA\(|pagin|proc: t|Roamed|rror|ssert|Thrott|timed? ?o|WARN' -k Message Ane 'SMC:' | tail -n25 | awk '/:/{$4=""; $5=""};1'`; Pm "Kernel messages"; o=`df -m / | awk 'NR==2 {print $4}'`; o=$((o<5120?o:0)); Ps "Free space (MiB)"; o=$(($(vm_stat | awk '/eo/{sub("\\.",""); print $2}')/256)); o=$((o>=1024?o:0)); Ps "Pageouts (MiB)"; s=( `sar -u 1 10 | sed '$!d'` ); [[ s[4] -lt 85 ]] && o=`printf "$Fu" ${s[1]} ${s[3]}` || o=; Ps "Total CPU usage" && { s=(`ps acrx -o comm,ruid,%cpu | sed '2!d'`); n=$((${#s[*]}-1)); c="${s[*]}"; o=${s[$n]}%; Ps "CPU usage by process \"${c% ${s[$((n-1))]}*}\" with UID ${s[$((n-1))]}"; }; s=(`top -R -l1 -n1 -o prt -stats command,uid,prt | sed '$!d'`); n=$((${#s[*]}-1)); s[$n]=${s[$n]%[+-]}; c="${s[*]}"; o=$((s[$n]>=25000?s[$n]:0)); Ps "Mach ports used by process \"${c% ${s[$((n-1))]}*}\" with UID ${s[$((n-1))]}"; o=`kextstat -kl | grep -v com\\.apple | cut -c53- | cut -d\< -f1`; Pm "Loaded extrinsic kernel extensions"; R && o=`sudo launchctl list | awk 'NR>1 && !/0x|com\.(apple|openssh|vix\.cron)|org\.(amav|apac|calendarse|cups|dove|isc|ntp|openld|post[fg]|x)/{print $3}'`; Pm "Extrinsic daemons"; o=`launchctl list | awk 'NR>1 && !/0x|com\.apple|org\.(x|openbsd)|\.[0-9]+$/{print $3}'`; Pm "Extrinsic agents"; o=`for d in {/,}L*/Lau*; do M; done | egrep -v 'com\.apple\.(CSConfig|server)' | while read f; do ID=$($PB\ :Label "$f") || ID="No job label"; printf "$Fb" "$f" "$ID"; done`; Pm "launchd items"; o=`for d in /{S*/,}L*/StartupItems; do M; done`; Pm "Startup items"; sys=`pkgutil --regexp --only-files --files com.apple.pkg.* | sort | uniq | sed 's:^:/:'`; b=`sed -E '/^.+Lib.+\/Contents\/Info.plist$/!d;s/\/Info.plist$//;/Contents\/./d' <<< "$sys"`; l=`egrep '^/usr/lib/.+dylib$' <<< "$sys"`; [[ "$b" && "$l" ]] && { o=`find -L /S*/L*/{C*/Sec*A,E}* {/,}L*/{A*d,Compon,Ex,In,iTu,Keyb,Mail/B,P*P,Qu*T,Scripti,Sec,Servi,Spo}* -type d -name Contents -prune | grep -Fv "$b" | while read d; do test -f "$d/Info.plist" || continue; ID=$($PB\ :CFBundleIdentifier "$_") || ID="No bundle ID"; printf "$Fb" "${d%/Contents}" "$ID"; done`; Pm "Extrinsic loadable bundles"; o=`find /usr/lib -type f -name *.dylib | grep -Fv "$l"`; Pm "Extrinsic shared libraries"; :; } || echo $'\nReceipts missing'; o=`for e in INSERT_LIBRARIES LIBRARY_PATH; do launchctl getenv DYLD_$e; done`; Pm "Inserted dylibs"; o=`find -L {,/u*/lo*}/e*/periodic -type f -mtime -10d`; Pm "Modified periodic scripts"; o=`scutil --proxy | grep Prox`; Pm "Proxies"; o=`scutil --dns | awk '/r\[0\] /{if ($NF !~ /^1(0|72\.(1[6-9]|2[0-9]|3[0-1])|92\.168)\./) print $NF; exit}'`; i=`route -n get default | awk '/e:/{print $2}'`; I=`$NS -listnetworkserviceorder | sed -En '/ '$i'\)$/{x;s/^\(.+\) //p;q;};x'`; n=`$NS -getdnsservers "$I" | awk '!/^T/{printf "not "; exit}'`; Ps "DNS (${n}from DHCP)"; o=`$NS -getinfo "$I" | awk '/k:/{if ($3 !~ "(255\.){3}0") print}; /v6:/{if ($2 !~ "A") print}'`; Pm "TCP/IP"; R && o=`sudo profiles -P | grep : | wc -l`; Ps "Profiles"; f=auto_master; [[ `md5 -q /etc/$f` =~ ^b166 ]] || Pc $f /etc/$f; for f in fstab sysctl.conf crontab launchd.conf; do Pc $f /etc/$f; done; f=/etc/hosts; Pc "hosts" <(egrep -v "$H" $f ); AT $f; Pc "User launchd" ~/.launchd*; R && Pc "Root crontab" <(sudo crontab -l); Pc "User crontab" <(crontab -l); R && o=`sudo defaults read com.apple.loginwindow LoginHook`; Pm "Login hook"; LD="$(`find /S*/*/F* -type f -name lsregister | head -n1` -dump)"; o=`for ID in $AC; do [[ "$LD" =~ $ID ]] && echo $ID; done`; Pm "Application check"; Pp "Global login items" /L*/P*/loginw* Path; Pp "User login items" L*/P*/*loginit* Name; Pp "Safari extensions" L*/Saf*/*/E*.plist Bundle | sed -E 's/(\..*$|-[1-9])//g'; o=`find ~ $TMPDIR.. \( -flags +sappnd,schg,uappnd,uchg -o ! -user $UID -o ! -perm -600 \) | wc -l`; Ps "Restricted user files"; cd; o=`SP Fonts | egrep 'id: N|te: Y' | wc -l`; Ps "Font problems"; o=`find L*/{Con,Pref}* -type f ! -size 0 -name *.plist | while read f; do plutil -s "$f" >&- || echo $f; done`; Pm "Bad plists"; d=(Desktop L*/Keyc*); n=(20 7); for i in 0 1; do o=`find "${d[$i]}" -type f -maxdepth 1 | wc -l`; o=$((o<=n[$i]?0:o)); Ps "${d[$i]##*/} file count"; done; o=; [[ UID -eq 0 ]] && o=root; Ps "UID"; o=$((`date +%s`-t)); Ps "Elapsed time (s)"; } 2>/dev/null | pbcopy; exit 2>&-
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    7. 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 (command-V). The text you pasted should vanish immediately. If it doesn't, press the return key.
    8. If you see an error message in the Terminal window such as "syntax error," enter
    exec bash
    and press return. Then paste the script again.
    9. 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.
    10. 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 the results. No harm will be done.
    11. 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.
    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.
    12. When you post the results, you might see the message, "You have included content in your post that is not permitted." It means that the forum software has misidentified something in the post as a violation of the rules. If that happens, please post the test results on Pastebin, then post a link here to the page you created.
    Note: 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 Terms of Use of 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.

  • Starting of database and listener automatically while starting server

    how to start the listener and database automatically while starting RH-LINUX server itself?
    thanks for advance
    Mohan

    Hello Mohan,
    following is the code of my shell, which i use for starting, stopping, restarting teh oracle and listener service, except your oracle home location and oracle user i do not think you need to change any thing..also i assume that you some basic knowledge of shell programming.
    put this /etc/rc.d/init.d, then add this service by chkconfig -- add oracle (if oracle is the file name in whcih this shell exists).
    it will run for 3,4,5 of runlevels with priority as 20, 80
    thanx in advance..subodh
    #!/bin/sh
    # Description: This Scripts starts stops Oracle database and listner
    # chkconfig: - 345 20 80
    ORACLE_OWNR='oracle'
    ORACLE_LOCN='/oracle/product/10.1.0/bin'
    echo "Check whethere the file exists or not"
    if [ ! -f '$ORACLE_LOCN/lsnrctl' -o ! -d $ORACLE_LOCN ]; then
    echo "Unable to Start the Oracle Service"
    fi
    case "$1" in
    start)
    echo "Starting up Oracle Database and Listener Service"
    su - $ORACLE_OWNR -c "$ORACLE_LOCN/dbstart"
    su - $ORACLE_OWNR -c "$ORACLE_LOCN/lsnrctl start"
    touch /var/log/oracle
    stop)
    echo "Stoping Oracle Database and Listener Service"
    su - $ORACLE_OWNR -c "$ORACLE_LOCN/dbshut"
    su - $ORACLE_OWNR -c "$ORACLE_LOCN/lsnrctl stop"
    touch /var/log/oracle
    restart|reload)
    echo "Restarting Oracle Database and Listener Service"
    $0 stop
    $0 start
    echo "Usuage Oracle start|stop|restart|reload"
    exit 1
    esac
    exit 0

  • Lenovo U310: Clean Windows 7 Installation Guide (including Rapid Start and Caching)

    Hi there,
    this is the first time that I am writing such a guide/tutorial/whatever you may call it – there are probably better ones, but though not being a total computer noob, it took me almost one week to get this pretty (now again) little beast running again. So hopefully this helps some others to avoid such stupid downtimes.
    A brief overview on what has happened to my original win 7 Home Premium:
    As some may know, this laptop is very well usable as a “Hackintosh” called Macbook clone. So that’s what I did. It turned out to be nice, but I wanted to go back to Windows after a while, using a clean W7 Pro installation to start over. Actually an easy task, format all drives, install Windows, be happy. Just as I had been doing this for years. Unfortunately, it turned out to be a real challenge. First, I couldn’t “see” my drives during installation (and thus not install), then I got random errors during installation aborting it at different points and finally rapid start and caching didn’t work. Every time I tried to activate them (after Win installation), it crashed my PC. I even found an (official Lenovo!) guide stating to install W7 on the SSD, which worked, but sucks due to space limitations. Oh and another very nice thing: The SSD showed up during WIN installation (but not the classical hard drive) stating it was about 60 GB. So as you can see, I have had a lot of different tries and errors. Why I didn’t use Lenovo Easy Recover? As said before, I erased all partitions…
    Before we start: If you have a good Windows running on the Laptop, do yourself a favor and disconnect the RAID 0 disks using the Intel Rapid Storage Application before(!!!) proceeding. It will make things much easier. And don’t forget to get all you data on an external drive or something.
    Ok, now let’s start.
    1.)    Prepare a USB Stick with the following driver
             http://downloadcenter.intel.com/Detail_Desc.aspx?DwnldID=21730 (choose f6flpy-x64.zip If you’re running a   
             64-bit system (standard nowadays), take f6flpy-x86.zip if it is a 32-bit Windows, just download and copy them
             into the stick’s root directory) and plug this stick in one of the left side USB ports.
    2.)    You’ll need Win 7 on either a DVD (plus external drive, for sure) or (bootable) USB stick
    3.)    Connect your drive/stick (with W7) to the right side USB port.
    4.)    Switch the computer on, immediately hit FN and F2. That will open the BIOS.
    5.)    In the BIOS, navigate to the very right section (“save and exit”) and navigate the cursor to “load setup defaults”.
             Hit enter to approve.
    6.)    After that, go to the “boot” tab and disable UEFI-boot.
    7.)    Next, go one more tab to the left and set the controller setting to RAID (NOT AHCI or Compatible!!!).
    8.)    Navigate the cursor down to “Intel Rapid Start” and hit enter. A submenu will pop up-
    9.)    Disable the first entry in that window, that will make the rest be disabled as well.
    10.) Navigate to the very right tab, this time hit save and exit.
    11.) The PC restarts.
    12.) Immediately hit FN and F12 to open the boot selection menu. Select to boot from your W7 DVD drive or USB
            stick.
    13.) Click yourself through the whole process of installing Windows 7 until the page comes up where you will have
            to select where to install it.
    14.) Click on “load drivers” and after a few seconds your downloaded driver should be there. Click ok to use them.
            Please do this step even if you can see your drives (SSD Disk 0, 32 GB and HDD Disk 1, 465(<-?) GB) as you
            would expect them – otherwise you’re very likely to get an error during the install process.
    15.) Now erase all partitions on both drives and select the HDD as the drive to install W7 to – NOT THE SSD!!!!!
            Seriously, don’t choose the SSD.
    16.) Windows will probably say that some extra partitions are necessary and so on, click ok and install Windows.
    17.) After the installation has finished and you see your Desktop, I suggest you to proceed with the next steps in the
            following order to see as early as possible if you are on the right way.
    18.) Install the Chipset driver, restart.
    19.) Install the Intel Rapid Storage “driver” and check the box where it asks to additionally install the control center.
            Reboot.
    20.) Go into BIOS (FN and F2) and enable Intel Rapid Start (the one you disabled in Step 8 and 9)
    21.) Boot into Windows.
    22.) Click on the Windows button, type cmd and right klick on the cmd.exe, select to run it as Admin.
    23.) Now you’ll create a hibernation partition on the SSD. (which by now should be completely empty as we’ve
            deleted all partitions in step 15)
    24.) In the command prompt that we have just opened, type: (without quotas, for sure)
    “diskpart” and hit the enter button
    “list disk” and hit the enter button
    Now you should see your ssd as disk 0 and your hdd as disk 1
    If your ssd is disk 0 (that would be standard), write “select disk 0”, otherwise write: “select disk 1”, and hit the enter button.
    Now write “create partition primary size=4096” and hit enter again. [if you have 4GB of ram, type 4096, if you have 8 GB of ram, use 8192]
    Now write “detail disk” and hit enter to see the volume number behind the volume that we have just created (it is 4 GB or 8 respectively, should be easy to find), in my case that was “2”
    Now type “select volume 2” if your 4 or 8 GB volume has number 2 as well, otherwise use the number you found out in step f. Hit enter.
    Finally, type: “set id=84 override” and hit enter for one last time.
    It should now say back that the id has been set successfully.
    Exit the command prompt. (close)
    25.) Reboot
    26.) Install the Rapid Start driver. Reboot.
    27.) Open the Intel Rapid Storage Application.
    28.) Click on accelerate and approve the settings. Two RAID’s will be created. Reboot.
    29.) Install the remaining drivers, have fun with Windows Update and that’s it!
    Good luck to all of you… And hey Lenovo - wouldn't that have been your job after all these posts showing your costumers in trouble? Just my two cents...
    If you want, you can now turn on UEFI-boot in BIOS.
    PS: If, after installing all drivers, you happen to see one unknown device in your device manager – this one belongs to Lenovo Connect Software that came with your Laptop. (Updates FB, Email etc when PC is in sleep mode) If you install Lenovo Connect it’s going to be fine, however, I would not recommend it as it is said to use a lot of energy and cause some other problems. So just live with it, your PC is totally fine without it.
    Kind regards from Shanghai

    Seriously guys, I can't use my 3 days old laptop. Some help would be mostly appreciated. At this point, the network connection issue doesn't show up anymore, it's just a blank screen after reboot. I reinstall windows and do it all over again just to achieve the same result.
    Now couple of things caught my attention: as I load the "6flpy-x64.zip" driver from step 14, I get a message saying I need to install signed drivers, because unsigned ones are likely to mess up the system.
    Secondly, I could not find any Rapid Storage Technology drivers for Windows 7 (particularly for U310 model), so I use the Windows 8 ones (http://support.lenovo.com/en_US/downloads/detail.page?DocID=DS031455), which seems a silly thing, yet I know of no alternatives.
    Could it be any of these issues to cause my problem? Or smth else? Please help!

Maybe you are looking for

  • Why does it take me so many tries before I can get the amber and/ or green light to come on, on my MagSafe power adapter?

    I have been having a problem for a little while now, and I have decided to overlook it for the most part. However, it is really starting to get on my nerves. The issue I don't believe is with the MacBook Pro itself, however with the MagSafe power ada

  • Uml diagrams

    i need a case study with all uml diagrams. does anybody knows any link or any material then do send it to me. it can be of project on nay topic. thanx

  • Why is iPod syncing so slow?

    I have been try to sync my iPod with my pc and it has taken close to 20 hours, and I am not yet half way. This has never happened. Why is it so slow? Any help

  • Tuning Oracle10g

    Hi All, I am learning Oracle Memory Tuning and gone through some Performance Tuning Articles. My questions are: - Since Oracle10g has Automatic Memory Management, once we specified Max SGA and MAX PGA what we need to tune in memory? - Where can I get

  • Transaction Codes Used in FICO.

    Can Somebody please give some of the t-codes used in FICo module?