Couldn't switch log

Dear buddies,
I was dropping and recreating some of the redo logs to create them with a larger size and somehow made some mistakes (in location and when I want to drop and recreate now, one of the files is giving me an error.
select * from v$logfile;
select group#, sequence#, bytes, archived, members, status
from v$log;
alter database drop logfile group 1;
alter database
add logfile group 1 ('F:\ORACLE\DATA\DEV\REDO01.LOG',
'F:\ORACLE\DATA\DEV\REDO01A.LOG',
'F:\ORACLE\DATA\DEV\REDO01B.LOG')SIZE 55M reuse;
alter database drop logfile group 2;
alter database
add logfile group 2 ('F:\ORACLE\DATA\DEV\REDO02.LOG',
'F:\ORACLE\DATA\DEV\REDO02A.LOG',
'F:\ORACLE\DATA\DEV\REDO02B.LOG')SIZE 55M reuse;
alter database drop logfile group 3;
alter database
add logfile group 3 ('F:\ORACLE\DATA\DEV\REDO03.LOG',
'F:\ORACLE\DATA\DEV\REDO03A.LOG',
'F:\ORACLE\DATA\DEV\REDO03B.LOG')SIZE 55M reuse;
alter database
add logfile group 4 ('F:\ORACLE\DATA\DEV\REDO03.LOG',
'F:\ORACLE\DATA\DEV\REDO03A.LOG',
'F:\ORACLE\DATA\DEV\REDO03B.LOG')SIZE 55M reuse; --added this newly and didn't change the file name
alter system switch logfile;
ALTER SYSTEM CHECKPOINT GLOBAL;
This is the error I receive when I try to start the database
ORA-00331: log version 10.2.0.4.0 incompatible with ORACLE version 10.1.0.0.0
ORA-00312: online log 2 thread 1: 'F:\ORACLE\DATA\MAinDB\LOG_02.LOG'
I mistakenly used the logs which belongs to another database.
Please help me.
Its the production database!
Nith

Ok try that:
alter database
add logfile group 5 ('F:\ORACLE\DATA\DEV\REDO05.LOG') SIZE 55M ;
alter database
add logfile group 6 ('F:\ORACLE\DATA\DEV\REDO06.LOG') SIZE 55M ;
alter database drop logfile group 1;
alter database drop logfile group 2;
alter database drop logfile group 3;
alter database drop logfile group 4;if you can not drop these logfiles then you need recreate controlfiles again with resetlogs option as:
sqlplus "/as sysdba"
shutdown ummediate;
STARTUP NOMOUNT;
CREATE CONTROLFILE REUSE DATABASE "W" RESETLOGS  ARCHIVELOG
    MAXLOGFILES 16
    MAXLOGMEMBERS 3
    MAXDATAFILES 100
    MAXINSTANCES 8
    MAXLOGHISTORY 292
LOGFILE
  GROUP 1 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\W\REDO01.LOG'  SIZE 50M,
  GROUP 2 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\W\REDO02.LOG'  SIZE 50M,
  GROUP 3 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\W\REDO03.LOG'  SIZE 50M
DATAFILE
  'D:\ORACLE\PRODUCT\10.2.0\ORADATA\W\SYSTEM01.DBF',
  'D:\ORACLE\PRODUCT\10.2.0\ORADATA\W\UNDOTBS01.DBF',
  'D:\ORACLE\PRODUCT\10.2.0\ORADATA\W\SYSAUX01.DBF',
  'D:\ORACLE\PRODUCT\10.2.0\ORADATA\W\USERS01.DBF',
  'D:\ORACLE\PRODUCT\10.2.0\ORADATA\W\EXAMPLE01.DBF';
alter database open resetlogs;Edited by: Chinar on Aug 3, 2010 4:00 AM

Similar Messages

  • Switch log file

    Hi Everyone,
    We are using the 9i database and during the import, we have temporarily added 2 new log groups (Each 2 gb in size) to improve the import performance. After the completion of the import we have a plan to drop those newly added log groups. In order to do that we have issue the command "Alter system switch logfile".,
    but it is running more than 8 hrs., We have increased the Log_archive_max_processes value also but still it is running.,
    Could anyone please suggest about how to improve the speed of switch log file operation?
    BANNER
    Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
    PL/SQL Release 9.2.0.8.0 - Production
    CORE 9.2.0.8.0 Production
    TNS for HPUX: Version 9.2.0.8.0 - Production
    NLSRTL Version 9.2.0.8.0 - Production
    Regards,
    Jai

    Hi,
    Please find below the last few lines of alert log,
    Thu Mar 7 15:06:15 2013
    alter database datafile 7 autoextend off
    Thu Mar 7 15:06:15 2013
    Completed: alter database datafile 7 autoextend off
    Thu Mar 7 15:06:15 2013
    alter database datafile 8 autoextend off
    Completed: alter database datafile 8 autoextend off
    Thu Mar 7 15:06:15 2013
    alter database datafile 9 autoextend off
    Completed: alter database datafile 9 autoextend off
    Thu Mar 7 15:06:15 2013
    alter database datafile 10 autoextend off
    Completed: alter database datafile 10 autoextend off
    Thu Mar 7 15:06:15 2013
    alter database datafile 11 autoextend off
    Completed: alter database datafile 11 autoextend off
    Thu Mar 7 15:06:15 2013
    alter database datafile 12 autoextend off
    Completed: alter database datafile 12 autoextend off
    Thu Mar 7 15:06:15 2013
    alter database datafile 13 autoextend off
    Completed: alter database datafile 13 autoextend off
    Thu Mar 7 15:06:15 2013
    alter database datafile 14 autoextend off
    Completed: alter database datafile 14 autoextend off
    Thu Mar 7 15:06:15 2013
    alter database tempfile 1 autoextend off
    Completed: alter database tempfile 1 autoextend off
    Thu Mar 7 16:02:53 2013
    ARCH: Evaluating archive log 1 thread 1 sequence 7
    Thu Mar 7 16:03:17 2013
    ARCH: Evaluating archive log 1 thread 1 sequence 7
    Thu Mar 7 16:26:01 2013
    alter database datafile 7 autoextend off
    Thu Mar 7 16:26:01 2013
    Completed: alter database datafile 7 autoextend off
    Thu Mar 7 16:26:01 2013
    alter database datafile 8 autoextend off
    Completed: alter database datafile 8 autoextend off
    Thu Mar 7 16:26:01 2013
    alter database datafile 9 autoextend off
    Completed: alter database datafile 9 autoextend off
    Thu Mar 7 16:26:01 2013
    alter database datafile 10 autoextend off
    Completed: alter database datafile 10 autoextend off
    Thu Mar 7 16:26:01 2013
    alter database datafile 11 autoextend off
    Completed: alter database datafile 11 autoextend off
    Thu Mar 7 16:26:01 2013
    alter database datafile 12 autoextend off
    Completed: alter database datafile 12 autoextend off
    Thu Mar 7 16:26:01 2013
    alter database datafile 13 autoextend off
    Completed: alter database datafile 13 autoextend off
    Thu Mar 7 16:26:01 2013
    alter database datafile 14 autoextend off
    Completed: alter database datafile 14 autoextend off
    Thu Mar 7 16:26:01 2013
    alter database tempfile 1 autoextend off
    Completed: alter database tempfile 1 autoextend off
    Fri Mar 8 04:21:08 2013
    ALTER SYSTEM SET log_archive_max_processes=6 SCOPE=BOTH;
    Fri Mar 8 05:05:43 2013
    alter database drop logfile group 4
    Fri Mar 8 05:05:43 2013
    ORA-350 signalled during: alter database drop logfile group 4...
    Fri Mar 8 05:07:13 2013
    ARCH: Evaluating archive log 1 thread 1 sequence 7

  • Switch logs

    hey gurus
    i have a database on oracle 9.2. i have created two standby out of it .and both are in managed recovery.ths database has sufficient space of it's requirement . Good space for datafile to grow and good space for archive logs. but the strange problem i'm facing is when ever i run command
    alter system switch logfile;
    it takes more then 3 or 4 hrs. and also i never find any error in ALERT FILE .
    there are also many other databases with diff version running on that server and having no problem in switch logs ..
    can any body discuss and define why this is happening

    by 3 4 hour i mean when ever we execute this command
    alter system switch logfile;
    it show no activity at all .like it's hang which it is not .it stays in same ondition for 3 4 hours and then switches log ,
    here are the results from all the querys
    SQL> SELECT PROCESS, STATUS, THREAD#, SEQUENCE#, BLOCK#, BLOCKS 2> FROM V$MANAGED_STANDBY;
    PROCESS STATUS THREAD# SEQUENCE# BLOCK# BLOCKS
    ARCH CLOSING 1 24230 1 1
    ARCH CLOSING 1 24229 1 3
    SELECT RECOVERY_MODE FROM V$ARCHIVE_DEST_STATUS ;
    RECOVER
    IDLE
    MANAGED
    MANAGED
    IDLE
    IDLE
    IDLE
    IDLE
    IDLE
    IDLE
    IDLE
    SQL> SELECT ARCHIVED_THREAD#, ARCHIVED_SEQ#, APPLIED_THREAD#, APPLIED_SEQ# 2> FROM V$ARCHIVE_DEST_STATUS;
    ARCHIVED_THREAD# ARCHIVED_SEQ# APPLIED_THREAD# APPLIED_SEQ#
    1 24230 0 0
    1 24230 1 24228
    1 24230 1 24228
    0 0 0 0
    0 0 0 0
    0 0 0 0
    0 0 0 0
    0 0 0 0
    0 0 0 0
    0 0 0 0
    no error in alert log file
    no arror in and trace file
    tnsping is working perfectly fine
    ( some time this command switch log file instantanously and at that time archive logs are getting trasferred to standby location)
    No cron job is running on this database
    only 40 gb is n size and very very less activity
    select event, sum(WAIT_TIME), count(*) from v$session_wait group by event order by 2
    EVENT SUM(WAIT_TIME) COUNT(*)
    rdbms ipc message 0 6
    smon timer 0 1
    switch logfile command 0 1
    can any body suggest something any clue in this regard
    Message was edited by:
    closetodestination
    Message was edited by:
    closetodestination

  • Hey, my iPhone 5 gets switched off on its own. Couldn't switch it on immediately. Have to put it for charging and gets switched on... What should i do now for this???

    Hey, my iPhone 5 gets switched off on its own. Couldn't switch it on immediately. Have to put it for charging and gets switched on... What should i do now for this??? when evr i go out this is one big problem i get... Couldn't use my fone.... Have to wait until i go back home...

    Start here www.apple.com/ca/support/ or call 1-800-263-3394.

  • Switching log file

    Hi All,
    Greeting of the day...
    please suggest on the below...
    need to do alter switch log file if the log file is not switched for 15 minutesthanks,
    baskar.l

    I'd suggest you not to do it manually, but rather to use [FAST_START_MTTR_TARGET|http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/initparams068.htm#REFRN10058] parameter
    The FAST_START_MTTR_TARGET initialization parameter is used to specify the amount of time (in seconds) a database should take to perform a crash or instance recovery. The value set for the FAST_START_MTTR_TARGET initialization parameter is internally converted to a set of parameters that modify the operation of Oracle in such a way that recovery time is as close to this estimate as possible.
    The FAST_START_IO_TARGET, LOG_CHECKPOINT_INTERVAL, and LOG_CHECKPOINT_TIMEOUT initialization parameters should not be used when using the FAST_START_MTTR_TARGET initialization parameter. Setting these parameters to active values obstructs the normal functioning of the FAST_START_MTTR_TARGET initialization parameter, resulting in unexpected results.
    The maximum value that can be set for the FAST_START_MTTR_TARGET initialization parameter is 3600. If a value greater than 3600 is set, Oracle automatically rounds it to 3600.
    Edited by: Kamran Agayev A. on Aug 4, 2009 12:06 PM

  • Switch log creating lock and hangs

    created new db, placed db into archivelog mode, switch log file, session waits. enterprise manage is showing an "IS" lock on that session. the arc
    folder is completely read/writable.
    any ideas?

    all is how it should be, archivelog enabled and started, write access to the dir and partition has plenty of free space. its the 3rd log switch creates a wait for something.
    SQL> alter database open;
    Database altered.
    SQL> ARCHIVE LOG LIST;
    Database log mode Archive Mode
    Automatic archival Enabled
    Archive destination /archlogs/misliv
    Oldest online log sequence 317
    Next log sequence to archive 319
    Current log sequence 319
    SQL> alter system switch logfile;
    System altered.
    SQL> /
    System altered.
    SQL> /
    ^Calter system switch logfile
    ERROR at line 1:
    ORA-01013: user requested cancel of current operation
    SQL> exit
    Disconnected from Oracle9i Enterprise Edition Release 9.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.4.0 - Production
    $ cd /archlogs
    $ ls -l
    total 22
    drwx------ 2 oracle oinstall 8192 Nov 9 2006 lost+found
    drwxrwxrwx 2 oracle oinstall 512 Oct 19 09:32 misliv
    $
    Message was edited by:
    the_gusman
    Message was edited by:
    the_gusman

  • HT204380 Hello...i have one problem with my ipod touch 4th gen....when i try to log in and start use the facetime one message appears in the screen that is say....you couldn't get log into facetime...what i must do??pleaze help me :/

    Hello i have one problem with my ipod touch 4th gen....when i try to log in facetime one message appears in the screen whick saying you couldn't log into facetime.....what i suppose to do?? :/please help me :/

    Try:
    The Complete Guide to FaceTime: Set-up, Use, and Troubleshooting Problems

  • How to view router/switch logs using LMS 3.2?

    Of course I can log into each of my 100 routers and switches and peforms "sh loggin" to look for problems, but how do I use LMS 3.2 to consolidate all those logs into one location?  Can I set up something so I can see those logs in more or less real time?
    Thanks in advance.

    >> Does LMS go get syslog messages periodically or does the device send a copy to LMS whenever it generates a new message?
    The latter.
    If for some reason, the devices cannot log directly to LMS, there're a few options: 1) Devices log to a central syslog server, which in turn exposes the syslogs to LMS' Syslog Analyzer, either via the Cisco-supplied Remote Syslog Collector or some unsupported methods such as NFS mount, or 2) Install Syslog-ng on the central syslog server, relay the logs to LMS, as described in this whitepaper: http://www.cisco.com/en/US/prod/collateral/netmgtsw/ps6504/ps6528/ps2425/white_paper_c11-571038.html
    >> What's the benefit of scheduling a report to run automatically?  Is it saved somewhere that is easier/quicker to get to?
    It's the usual benefits of automation. Scheduled syslog reports apparently write outputs to /var/adm/CSCOpx/files/rme/cri/archives/syslog/reports/output/[jobID_runID], on Solaris, for example. The structure inside is rather muddy. So it might be easier to have something like a VBscript to screen-scrape the LMS web GUI for the report outputs instead.
    >> Can new syslog messages from devices be posted to an RSS feed?
    That's a novel idea. Though obviously not from the devices directly, it most likely coud be done through some "syslog2rss" relay residing on the syslog server. I think the potential volumes of logs could be too much for RSS, unless careful filtering/deduplication takes place on the relay before posting to a feed.

  • Muse not switching log-in accounts

    I have creating three sites in MUSE. One is live and running find as a paid account on BC. The second and third are client sites and I am now running into real problems.
    First, I am running MUSE Beta 7. I am trying to SWITCH ACCOUNTS in the PERFERENCES so that I can upload a client site using a NEW ADOBE ID. I keep getting the error:  "User name or password is incorrect, please try again." (SEE PHOTO). The new client Adobe ID WORKS PERFECTLY on the Adobe website Sign-in page.
    So then I went to my ADMIN on BC and UPGRADED the trail site for the client to a PAID site and thought that I could switch the BC account for the new PAID site to a new ADODBE ID USER. But no, there appears to be no way to switch a paid user in the PARTNER PORTAL to a new Adobe ID so the client has a separate log-in. I am not a paying PARTNER for Business Catalyst, but I cannot imagine BC turning down business.
    What can I do to make MUSE recognize a new ADOBE ID in PERFERENCES?
    And secondly, if anyone on the MUSE team knows what to do about switching ID's on paid accounts on BC, please help as the forum for Business Catalyst does not seem to be thriving with helpful employees.
    FYI: Adobe better start have support staff who can addres BOTH Business Catalyst and MUSE issues since I am not alone in using both tools, and Adobe is pushing to have the products be linked as much as possible.
    Pulling my hair out!

    Andrew, thanks for trying, but I am not sure what you mean as there is no general BC log-in, only an ADMIN log-in which requires that a website ALREADY be set up on BC.
    When I go to www.businesscatalyst.com/ the link now goes to an ADOBE page rather than a separate website. The only “log-in” on that page is the Adobe Sign-In page. I can use the client Adobe ID there with no problem, but the Adobe Log-in and for an Adobe ID has NO WAY to link the BC account to the ID.
    If you are talking about the LOG-IN panel for a Business Catalyst website, the only panel I can log into is the one for MY OWN site (https://nj.worldsecuresystems.com/Admin/Index.aspx?OURL=www.kazapme.com&to=), NOT the client site because the client site does not have its own panel yet because BC is mixing my account with the client account. Dear God, this is a nightmare with still no help from the BD Form!
    So, unless the BC team finally answer my question, it sounds like I need to download and install MUSE on a DIFFERENT computer, then try and get MUSE to work with a DIFFERENT Adobe ID because it refuses to swith accounts. Insane, but right now I am desperate for a solution. What happens with my third client when I want to take that site live and cannot switch because the ADobe ID is new? I only have so many computers or so much time to install than reinstall MUSE for each time I want to switch accounts to a new one (if that process would even work).

  • Switch log file is too slow

    hello,
    my database is 10R2
    the specified size of online redolog file is 50mb
    the switching of log file is too slow..
    even though the size of archived log file has become around 50,029,there is still no log switch of file..
    why the log switch is not occuring immediately after the size reaches upto that limit(50,029)...?
    what might be the setting do i need to do..
    any help ....any guess ??
    thank you..

    Hello,
    The frequency of the log switch depends on the activity of the Database.
    You may check the Alert log for some messages like this:
    Thread 1 cannot allocate new log, sequence ...
    Checkpoint not completeWhile Oracle needs informations in the Redo log to complete the Checkpoint, it cannot reuse it. So, it can happen that the Database doesn't switch the redo log up to the Checkpoint is complete.
    If you have this kind of messages, the following link may help you:
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:69012348056
    Often, it's solved by adding redo log files.
    The Parameter fast_start_mttr_target may also help the Database to optimize the checkpoint:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/initparams068.htm
    Else, if you don't have this message ( checkpoint not complete ...), but you want to log switch more frequently (even if the Redo log is not completely full), you have the parameter archive_lag_target. It can help to force log switch every n+ seconds:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/initparams009.htm
    NB: It's not recommended to get log switch too frequently, in general you shouldn't have more than 3 or 4 log switchs every hour.
    Hope this help.
    Best regards,
    Jean-Valentin
    Edited by: Lubiez Jean-Valentin on Mar 5, 2011 11:44 AM

  • Nokia E 63 couldn't switch on

    I try to switch on my mobile E 63 several times and couldn't succeed. Please help me

    Hi zoysa22,
    Welcome to the Nokia forum. 
    If the device is fully charged and does not switch on, visit a local Care centre where they can check out the phone. 
    Let me know how you get on.
    Iris9290
    If my post has helped you in any way, please accept it as a solution or click on the white star, so that other users will be able to benefit from it too.

  • Syslog locks when switching logs without console

    Hi all,
    We are comming across a problem in one of our Solaris 2.6 machines. When the script newsyslog switches the logs for syslogd, this process stops writing in the messages files. This happens when newsyslog is executed not having a console open in the machine. Besides whe get the following message in the console from time to time:
    INIT: Command is respawning too rapidly. Check for possible errors.
    id: sc "/usr/lib/saf/sac -t 300"
    So it seems that for any reason sac is not able to start and that is blocking the correct start of syslogd, maybe?
    I would appreciate any help. Regards,
    Jorge

    Mine does it too. It to do with your security settings. I believe you'll have to disable the 'Remote Lock' you have in the screen shot. Bit of a pain, but addded security if you lose your phone I guess.
    Jurassic Park, Sam Neill to Dickie Attenborough " Mr. Hammond, the phones are working !"
    N8-00 Tesco UK 059C951, Lumia 920

  • Switch Logging info from HDV to Apple Intermidate Codec???

    I have just logged all my tapes accidently using the HDV codec, is there a way to switch over to the Apple Intermidate Codec before i digitise or am i screwed?
      Mac OS X (10.4.7)  

    Many people choose to use HDV, and tell me that there's no downside to that. The downside I expected there to be would be that random access would be slower (as you're jumping around in an MPEG-2 file). But apparently that doesn't happen.
    I would be tempted to just go ahead and try editing the files you have, because if it works it's a better quality path than converting to Apple Intermediate Codec would be, as well as taking up a lot less disk space.

  • Switch Logs _Power supply

    Hi ,
    Can anyone tell me why we got following logs on Cisco IOS Software, C3560E Software (C3560E-UNIVERSALK9-M), Version 12.2(55)SE3, RELEASE SOFTWARE (fc1)?
    Help me out.
    Mar 26 14:58:04.456 IST: %PLATFORM_ENV-1-FRU_PS_ACCESS: FRU Power Supply is not responding
    Mar 26 14:58:07.719 IST: %PLATFORM_ENV-1-FRU_PS_SIGNAL_FAULTY: POWER_GOOD signal on power supply 1 is faulty
    Mar 26 14:58:12.743 IST: %PLATFORM_ENV-1-FRU_PS_SIGNAL_OK: POWER_GOOD signal on power supply 1 is restored.
    Regards,
    Rohan

    Hi Susan,
    Do you have redundant power supplies connected to the 2950s?
    If not, you are probably running into a cosmetic bug, CSCee96721.
    We can confirm this by issuing a "show env" in the CLI.
    You should see something like this:
    "switch#sho env all
    FAN is OK
    Internal POWER supply is OK
    RPS is NOT present
    RPS is FAULTY"
    Note that the last line indicates that the RPS is faulty, even though the line above it indicates that no RPS is present.
    If that applies to you as well, then you are hitting this bug. CNA is polling the same information, which is why you are seeing "switch redundant power supply failed" in CNA.
    The fix is in 12.1(22)EA3 and later.
    HTH,
    Bobby
    *Please rate helpful posts.

  • Every time I click on any link, an add pops up in a separate tab even though I have the ad blocker turned on. At one point I couldn't even log in to anything!

    I downloaded several types of Kindle readers because the Mac obviously doesn't come with one. I have a feeling one of them was corrupt because afterwards, these adds wouldn't go away and everything got steadly worse. I've only had my Mac for less than a month so I erased everything I had on it, icluding music, pictures, whatever files that could potentially be harmful.
    I cleared out my trash, I erased my history, I disconnected from my internet, I redownloaded Chrome and these adds still keep popping up no matter what I do. I even downloaded a Macbook cleaner from the website and it did absolutely nothing. I've run out of options and I'm so frustrated that I'm tempted to just sell my laptop, I'm so sick of dealing with this.
    Any suggestions? Should I just go into an Apple store and have someone check it out?

    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.evenflow.dropbox 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//;/Apple|SMSC/d;s/\n.*//;/\)/p;};/^ *(V.+ [0N]|Man).+ /{s/ 0x.... //;s/[()]//g;s/(.+: )(.+)/ (\2)/;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=`find . -maxdepth 1 -exec basename {} + | while read f; do [[ ("$f" =~ ^\.. && ! "$f" =~ ^\.(account|adob|andr|[ae]no$|barom|bash|Box Sy|bundle|CFU|cache|certs|config|crfd|cups|dbv|DownloadM|dropb|DS_S|dvdc|erla|filezi|flexl|font|Fuze_|gdb_|gem|git|gnome|gnupg|goodsy|herok|irb[-_]|lessh|macli|mpl|mysq|nchs|netT|oh-|omnif|parall|profile$|psql_|python|ri$|rnd$|robof|sh_|rspec$|ruby|rvm|sh_h|smb$|spumu|sqlite_|ssh|subv|Temp|thumb|Trash|vim|wapi|webex|wine|wiresh|Xau|xbmc|Xcode$|xinitrc|zcomp|zprof|zsh[-_])) || ($(stat -f%f "$f") -ge 32768 && "$f" != Library) ]] && ls -Fd "$f"; done`; Pm "Hidden user files"; 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.

Maybe you are looking for

  • LV 8.20 Custom Application Icons Limited to 16 Colors?

    Hi Folks, I'm in the process of building a completed LabVIEW application into a useful .exe that can be distributed. I'm wondering about the LV 8.20 application builder. First I noticed that indeed there is now an ICON EDITOR! (your prayers have been

  • Changes are not reflecting in Int Directory. Pls suggest

    Hi All, I made changes in my Integration Directory. I run the scenario. Changes are not reflected in sxmb_moni. I do SXI_cache, CPA Cache and then again run scenario. Changes are reflected. What steps to do so that I do not have to do SXI_cache, CPA

  • Brand new N73 is frozen solid

    I have resently purchased a new N73 from T-Mobile (through contract ) . Unfortunately after 5 weeks the phone is now frozen . All I get when I switch the phone on is the back-light and the blue nokia symbol . Also , clock and date is working and show

  • KPA6 and report painter

    HI Everyone and Consultants, Well i am at abaper and dont have much knowledge in finance controling. First issue: Currently we update our budget using the t.code KPA6 using Profit Center and Cost element. It is succesfully getting update at KPA7. But

  • HT4890 Photo Stream on Iphone

    I have turned on my photo stream on my iphone, but when I open my Icloud in other computer I can´t acess my photos. There is not a icon to acess any photos. The icon that  have in my Iclous are CONTACTS, FIND MY IPHONE, IWORK, CALENDAR AND MAIL. How