Please trace what is wrong in TRIGGER script , doesnt create trigger.

Hi Oracle Gurus,
Please help me, in finding what is wrong in trigger statement. It doesn not create trigger, instead it displays line numbers..like 1 2 3 4 ....after pressing the enter key,
I am attaching the full script, where it alters table, then creates new table, the creates sequence..lastly it fails in creating the trigger.
==================================================================================
SQL> ALTER TABLE MOBILE.MOBILE_USER ADD (LAST_LOGIN TIMESTAMP);
Table altered.
SQL> CREATE TABLE "MOBILE"."AUDIT_LOG"
2 3 "AUDIT_LOG_ID" NUMBER(16,0) NOT NULL ENABLE,
4 "DATE_CREATED" TIMESTAMP (6) NOT NULL ENABLE,
5 "AUDIT_TYPE" VARCHAR2(20 BYTE) NOT NULL ENABLE,
6 "AUDIT_DATA" CLOB,
7 CONSTRAINT "AUDIT_LOG_PK" PRIMARY KEY ("AUDIT_LOG_ID") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "SERVICES_DATA" ENABLE
8 )
9 PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING STORAGE
INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT
10 11 12 )
TABLESPACE "SERVICES_DATA" LOB
13 14 (
15 "AUDIT_DATA"
16 )
17 STORE AS
18 (
19 TABLESPACE "SERVICES_DATA" ENABLE STORAGE IN ROW CHUNK 8192 PCTVERSION 10 NOCACHE LOGGING STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
20 ) ;
Table created.
SQL> CREATE SEQUENCE "MOBILE"."AUDIT_LOG_SEQ" INCREMENT BY 1 START WITH 1000 CACHE 20 NOCYCLE ;
Sequence created.
SQL> create or replace
TRIGGER "MOBILE"."AUDIT_LOG_TRGR" before
INSERT ON "AUDIT_LOG" FOR EACH row BEGIN IF inserting THEN IF :NEW."AUDIT_LOG_ID" IS NULL THEN
SELECT AUDIT_LOG_SEQ.nextval
INTO :NEW."AUDIT_LOG_ID"
FROM dual;
END IF;
END IF;
END;

Ok great..but it gives the same error, we have already checked that AUDIT_LOG does exist.
Is it checking something else..or it shoud be INSERT INTO instead of INSERT ON.
Please help.
create or replace
TRIGGER "MOBILE"."AUDIT_LOG_TRGR" before
INSERT ON "AUDIT_LOG" FOR EACH row BEGIN IF inserting THEN IF :NEW."AUDIT_LOG_ID" IS NULL THEN
SELECT AUDIT_LOG_SEQ.nextval
INTO :NEW."AUDIT_LOG_ID"
FROM dual;
END IF;
END IF;
END; /
INSERT ON "AUDIT_LOG" FOR EACH row BEGIN IF inserting THEN IF :NEW."AUDIT_LOG_ID" IS NULL THEN
ERROR at line 3:
ORA-00942: table or view does not exist

Similar Messages

  • What's Wrong With This Script

    A couple of years ago I was using an AppleScript file (thanks to someone else's assistance) but it no longer works.
    I have an extra internal drive, that is partitioned, and used for sequential daily backups. When the computer starts up, of course all the drives mount - but I prefer that they are off the desktop until neded.
    Rather than selecting the volumes and then dragging to the Trash, I found it easier to have a script run at startup which then asks if the drives should be unmounted.
    Things were great - until I upgraded to Tiger.
    I am hoping that someone can tell me what's wrong with the script so that I can start using it again. As you can probably tell, I don't have any experience in AppleScript. At the moment the script runs - it presents the dialogue box - and then just ends after a response, but the drives do not unmount.
    The partitions on the drive are called Monday Tuesday Wednesday Thursday Saturday
    The existing script is as follows:
    on run
    display dialog "Unmount All Backup Drives?" buttons {"Yes", "No"} default button 1
    set x to button returned of result
    if x is "Yes" then tell application "Finder" to eject "Monday"
    end run

    This relates to another (current) thread in AppleScript discussions.
    Your script works with Panther as that operating system allows INTERNAL drives to be "ejected" (and, if you eject one volume on a partitioned drive, all the volumes on that drive are ejected -- this explains why ejecting "Monday" actually ejected Monday through Friday).
    With Tiger, you would find that your script works exactly as expected with EXTERNAL drives, but INTERNAL drives need a different approach.
    To get behavior exactly as you had before, try this script:
    --BEGINNING
    display dialog "Unmount All Backup Drives?" buttons {"Yes", "No"} default button 1
    set x to button returned of result
    if x is "Yes" then set driveName to "Monday"
    set driveInfo to do shell script "diskutil list | grep \"" & driveName & "\""
    set driveID to last word of driveInfo
    do shell script "diskutil unmountDisk " & driveID & ""
    --END
    For reasons that aren't entirely clear to me, this approach, while it works reliably, is very slow -- on my fast machine, the unmount process takes nearly 20 seconds. (Using UNIX directly in Terminal, with the same command, is very quick.) (In the AS, the delay occurs in second "do shell script.")
    Another puzzle that has cropped up is described in the related thread "Applescript to Mount/Unmount a Disk . . ." (current). While the above approach works for Justin Surpless, it often prompts for a password -- unacceptable in his application. I've not seen this on my PPC (and I tried 10.4.7, which he's using); his may be an Intel Mac, if that could be the difference.

  • HT4623 hi i have an iphone 4s and has not been a year yet no water damage but there is a white cloudy screen around the edges and will start going crazy with different colors and all someone please gel what is wrong with it?

    hi
    i have an iphone 4s and has not been a year yet no water damage but there is a white cloudy screen around the edges and will start going crazy with different colors and all someone please gel what is wrong with it?

    I switched the usb port and did the whole recovery holding of the buttons ect... And it worked, the computer detected the phone and i was able to click restore. However, the computer says preparing iphone for restore and it is still doing the restarting thing where the apple fades away and then comes back like it is restarting. If i can somehow get past this i will be able to go back to factory settings and resolve my problem, but this is where i am stuck.

  • What's wrong with my script?

    Can someone please look to see what's wrong with my
    navigation bar here:
    http://www.simple-it.us/index2.html.
    The links don't work.
    At the top of the page you can download my files.
    If you figure it out, please tell me in laymen's terms. Flash
    is NOT my forte!
    Thanks!
    Michelle

    Click on the top frame and open the actions window:
    btn_home.onRelease = function() {
    btn_home.getURL("");
    The getURL needs a url inside of the quotes - something like
    index.html

  • Error Log : Please check what is wrong, stuck since 4-5 days

    Hello friends, since 4-5 days i am stuck in acheiving R/3 -> XI -> R/3 scenario.
    Today i found this Messaging system Monitor, where i can see my requests under Sent Messages -> Synchronous
    looking at the Audit Log can you please tell me whats going wrong.
    Success RFC adapter received sRFC for BAPI_USER_GET_DETAIL from TTD/000. Attempting to send message synchronously
    Success Application attempting to send an XI message synchronously using connection AFW.
    Success Trying to put the message into the call queue.
    Success Message successfully put into the queue.
    Success The message was successfully retrieved from the call queue.
    Success The message status set to DLNG.
    <b>Error</b> Returning synchronous error notification to calling application: Received HTTP response code 404..
    <b>Error</b> Transmitting the message using connection <b>http://ps3181:50000/sap/xi/engine?type=entry failed</b>, due to: Received HTTP response code 404..
    <b>Error</b> The message status set to FAIL.
    2006-06-26 18:05:03 Error Returning to application. Exception: Received HTTP response code 404.
    Message Details :
    Message ID  30cb7f61-0510-11db-8401-000ffe1edd53 
    RefToMsg ID    
    Conversation ID    
    Sequence Number  0 
    Message Type  Synchronously Sent Message (CALL) 
    From Party    
    From Service   Name:  TTDBusinessSYS  
    To Party    
    <b>To Service </b>   
    these are Message Details , if you notice <b>To Service</b> is not showing any value , why is it happening as i have configured the receiver in Integration directory
    since 4-5 days i am getting "call to messaging system failed. com.sap.aii.af.ra.ms.api.DeliveryException"
    also the audit Log spoke something about this <b>http://ps3181:50000/sap/xi/engine?type=entry failed
    , due to: Received HTTP response code 404.. </b>.
    what oes this mean , when i copied this url to explore , i get message saying "Page Not Found"
    Please reply if anyone of you have encountered this problem earlier

    > Hi,
    >
    > Pipleine URL should have Http port(8xxx).
    >
    > Regards,
    > Moorthy
    Hi Krishna ,
    i made the Pipeline URL with Port 8000.
    No in the error log i am getting following error
    2006-06-26 19:24:29 <b>Error SAPEngine_System_Thread[impl:5]_94 1151330069023 Returning synchronous error notification to calling application: Received HTTP response code 403..</b>
    2006-06-26 19:24:29 <b>Error SAPEngine_Application_Thread[impl:3]_17 1151330069023 Transmitting the message using connection http://ps3181:8000/sap/xi/engine?type=entry failed, due to: Received HTTP response code 403..</b>
    when i tried accessing same URL directly in explorer it says " Service cannot be reached : URL http://ps3181:8000/sap/xi/engine call was terminated because the corresponding service is not available.
    <b>Note
    The termination occurred in system TD1 with error code 403 and for the reason Forbidden.
    The selected virtual host was 0 .</b>
    What does it show to you all when you try accessing same URL , should i get something , is there a problem in some configuration in my XI..
    A little details about my configuration
    in exchange Profile  :
    com.sap.aii.connect.integrationserver.r3.httpport = 8000
    com.sap.aii.connect.integrationserver.name = ps3181
    com.sap.aii.connect.landscape.httpport = 50000
    As i said earlier , while creating business system
    my URL is http://ps3181:8000/sap/xi/engine?type=entry
    however in XI BOx when i say sxmb_adm->Integration Engine Configuration-> Check . In system landscape it shows http://ps3181:50000/sap/xi/engine?type=entry
    and most importantly SXI_CACHE not working in XI .
    Can you please tell me where is the error.
    Thanks

  • Uncaught Exception - Can any body please suggest what is wrong

    SRM gurus,
    Can any body suggest what is wrong with the below error
    Fresh SRM 7 installation , all the configuration is complete but when shopping cart is created getting this error.
    Checked the logical systems and all other setting everything is fine.
    Not sure why this error is coming.
    UNCAUGHT_EXCEPTION
    Buffer table not up-to-date
    Function: BBP_PD_ABORT of program SAPLBBP_PDH
    Form: ABORT of program SAPLBBP_PD
    Form: BUDGET_SC_CHECK of program SAPLBBP_PD
    Form: PROCDOC_CROSS_CHECKS of program SAPLBBP_PD
    Form: PROCDOC_DB_CHECK of program SAPLBBP_PD
    Form: PROCDOC_CHECK of program SAPLBBP_PD
    Function: BBP_PROCDOC_CHECK of program SAPLBBP_PD
    Method: /SAPSRM/IF_PDO_BASE~CHECK of program /SAPSRM/CL_PDO_BASE===========CP
    Method: /SAPSRM/IF_PDO_BASE~CHECK of program /SAPSRM/CL_PDO_BO_SC==========CP
    Method: /SAPSRM/IF_PDO_BASE~CHECK of program /SAPSRM/CL_PDO_BO_SC_ADV======CP
    Edited by: srisrm on Dec 12, 2010 4:57 AM

    hi
    please go through the note no sapnote_0001276694
    regards
    prakash

  • Script to create trigger

    I want to create a trigger on all dba_tables.
    I want to do a select in a trigger but i don't know how to do.
    Here are my trigger and my select
    CREATE OR REPLACE TRIGGER SIGTASAD.TRG_dba_tables_BEF_INSUPD
    BEFORE INSERT OR UPDATE
    ON dba_tables
    FOR EACH ROW
    DECLARE
    v_ird_employee_no IRD_EMPLOYEE.ird_employee_no%TYPE;
    BEGIN
    v_ird_employee_no := PCK_UTIL.get_ird_employee_no( USER );
    IF INSERTING THEN
    :NEW.enter_user := v_ird_employee_no;
    :NEW.enter_date := SYSDATE;
    ELSIF UPDATING THEN
    :NEW.update_user := v_ird_employee_no;
    :NEW.update_date := SYSDATE;
    END IF;
    END;
    Select *
    from dba_tables
    where owner = 'SIGTASAD'
    order by table_name;
    Thanks

    Ok
    Before I was a system administartor, but our dba was off, and now i assume this function before.
    So
    we have a new data base
    and i created a script to add column in dba_tables.
    And here is this script:
    select 'ALTER TABLE ',substr(table_name,1,40),' add(enter_user number(6)
    ,update_user number(6)
    ,enter_date date
    ,update_date date); '
    from dba_tables
    where owner = 'SIGTASAD'
    order by table_name;
    And i use a script (give me by some one) to create a trigger in main table but one by one; and here is this script:
    CREATE OR REPLACE TRIGGER SIGTASAD.TRG_payment_loc_BEF_INSUPD BEFORE INSERT OR UPDATE
    ON payment_loc
    FOR EACH ROW
    DECLARE
    v_ird_employee_no IRD_EMPLOYEE.ird_employee_no%TYPE;
    BEGIN
    v_ird_employee_no := PCK_UTIL.get_ird_employee_no( USER );
    IF INSERTING THEN
    :NEW.enter_user := v_ird_employee_no;
    :NEW.enter_date := SYSDATE;
    ELSIF UPDATING THEN
    :NEW.update_user := v_ird_employee_no;
    :NEW.update_date := SYSDATE;
    END IF;
    END;
    Now after column in all tables of dba_tables, i want to create trigger in all tables of dba_tables.
    But i don't how tio do it, i think i explained more now.
    thanks

  • Facebook has not been loading properly for me since Feb. 22/14. Can you please check what is wrong with Firefox. The web-site Facebook works fine on Safari.

    I've had issues with Facebook not loading certain areas of the web-site correctly or fully since Feb. 22. When I first go onto Facebook I am on the home page "news feed". Thing is when I click on the tab at the bottom of the news feed that says "see more", nothing is happening. It refuses to open the feed up to older posts which friends or myself have posted. Only about 6 - 8 posts at the max show on that home feed. That's it.
    My other issue, also in Facebook is when I go to access my "messages". First click on the tab "messages" brings up a white page. Then if I refresh the page to see if it will load, the messages page loads very weird. It shows the last message I may have replied to at the bottom of the screen, but over lapping on top of the list of previous messages to the left of the page. Plus the page appears extremely different than it should. Just like it's been re-formatted or whatever.
    Since these 2 issues started on Saturday afternoon I've switched over to the Safari browser on my iMac. On that browser Facebook is performing properly, as it should be. It's not overlapping messages. Plus the home feed isn't refusing to extend for me so that I may view older stories or posts by friends. All appears fine while accessing Facebook on the Safari browser. Not so while on Firefox. I am running the most up to date version of Firefox. "27.0.1" Plus I have a habit to clear the browser's history daily & restarting the browser as well as my iMac. So I do not believe those are my problems. I feel there may be something you guys there at Firefox should look into on this.
    Thank you for your time.

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. [[Troubleshoot Firefox issues using Safe Mode|Firefox Safe Mode]] is a troubleshooting mode that turns off some settings and disables most add-ons (extensions and themes).
    ''(If you're using an added theme, switch to the Default theme.)''
    If Firefox is open, you can restart in Firefox Safe Mode from the Help menu by clicking on the '''Restart with Add-ons Disabled...''' menu item:<br>
    [[Image:FirefoxSafeMode|width=520]]<br><br>
    If Firefox is not running, you can start Firefox in Safe Mode as follows:
    * On Windows: Hold the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac: Hold the '''option''' key while starting Firefox.
    * On Linux: Quit Firefox, go to your Terminal and run ''firefox -safe-mode'' <br>(you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]] article to find the cause.
    ''To exit Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    When you figure out what's causing your issues, please let us know. It might help others with the same problem.
    Thank you.

  • What is Wrong With This Script!?

    I've been trying to write a script to calculate the odds of getting a particular number when rolling a pair of 10-sided dice and adding them together.  The ruby script I've been trying to write simply does not work.  I don't know if I'm overlooking something or stumbled into a bug with the ruby interpreter.  Could someone take a look at it and tell me if anything's wrong?
    Here's the offending section of the script:
    $ary = Array.new(20, 0)
    $x, $y, $z = 0, 0, 0
    10.times do
    $x += 1
    10.times do
    $y += 1
    $z = $x + $y
    $ary[$z] += 1 #This is the line causing problems
    end
    end
    And here's the error message I'm getting:
    Dice.rb:9: undefined method `+' for nil:NilClass (NoMethodError)
    from Dice.rb:6:in `times'
    from Dice.rb:6
    from Dice.rb:4:in `times'
    from Dice.rb:4

    dtw wrote:You're also "wasting" 2 elements in your array as you will never get z = 0 or 1.  If these is an academic exercise i.e. you are doing it for practice not for purpose, you might consider creating a hash instead of an array with keys 2 through 20 to refer to each result.
    I was doing it for a purpose, but wasted elements are not a concern for me since this was just a script I would be using only once.  I'm in the process of designing a tabletop RPG.  One of the mechanics in the game is the use of 2d10, which are rolled for resolving actions.  I needed to know the odds, as they would affect the game mechanics.

  • Can you  please tell what is wrong, and what should be correct action.

    Dears,
    I am facing a problem. I am preparing a business report. I have generate the report for customer orders that will expire in certain duration as well as the last Payment Method used by the customer.
    For this I have to use to tables which are as follows:
    ORDER_DETAIL
    ONETMPRD_CHRG
    ORDER_DETAIL Contains the order Id, Order Date, Payment Method.
    ONETMPRD_CHRG contains the customerid, orderid, item, duration and service expiry date and other detail
    ORDER_DETAIL is the master table
    ONETMPRD_CHRG is the detail table.
    I have write the following query to achieve this-
    SELECT A.GF_USER_CUSTID , b.gf_payment_method, MAX(b.gf_order_date) --COUNT(DISTINCT a.gf_user_custid) Customer
    FROM CIQDE.GT_ONETMPRD_CHRG A, CIQDE.GT_ORDER_DETAIL B , ciqops.ops_item_280106 c, ciqde.gt_customer_address_phone d, gt_customer e
    WHERE B.GF_ORDER_ID = A.GF_ORDER_ID
    AND c.gf_item_code=a.gf_item_code
    AND a.gf_user_custid=d.gf_cust_id
    AND d.gf_cust_id=e.gf_customer_id
    AND a.GF_ACTUAL_END_DATE BETWEEN '23-JAN-2006' AND '01-AUG-2006'
    AND a.GF_COUNTRY_CODE = 'AT'
    AND a.gf_charge_type IN ('C')
    AND NVL(a.gf_u_duration,0)=0
    AND a.gf_price_plan_code='PPSCU'
    GROUP BY A.GF_USER_CUSTID , b.gf_payment_method
    ORDER BY A.GF_USER_CUSTID
    Problem : I am not getting the expected Reult, some extra records are coming in the result output

    Problem : I am not getting the expected Reult, some extra records are coming in the result output So you are getting all the records you want, just with extra ones? Then you need to work at the works you don't want and figure out what distinguishes them from the records you do want. Then amend your WHERE clause accordingly.
    This is really a business issue: you understand your application and its data, we don't.
    Cheers, APC

  • What is wrong with this script (zlogin)

    I took this script directly from the Trusted Extensions Developers Guide and it's not working. The problem is in the syntax for the if() inside the nawk program, but the correct syntax is eluding me. I verified that both $4 and $zonepath are set properly, but for some reason they never compare to be equal even when they are so zlogin is never called. If I put an else and have it also print $2 then as you might guess zlogin is executed for every zone. Thanks for any tips!!
    #!/sbin/sh
    # Run the specified command in the zone that matches the specified label
    # Usage:
    # runwlabel "my-label" my-program
    [ ! -x /usr/sbin/zoneadm ] && exit 0 # SUNWzoneu not installed
    PATH=/usr/sbin:/usr/bin; export PATH
    # Get the zone path associated with the "my-label" zone
    # Remove the trailing "/root"
    zonepath=`getzonepath "$1" | sed -e 's/\/root$//'`
    # echo zonepath is ${zonepath}
    progname="$2"
    # echo progname is ${progname}
    # Find the zone name that is associated with this zone path
       for zone in `zoneadm list -pi | nawk -F: -v zonepath=${zonepath} '{
        # The problem is in this if()
        if ("$4" == "${zonepath}")
            print $2
       }'`; do
            # Run the specified command in the matching zone
            zlogin ${zone} ${progname}
        done
    exit

    if ("$4" == "${zonepath}")
    this if statement is inside nawk, therefore it may be referenceing nawks $4 variable instead of the shell scripts, its all about scope. Maybe try to assign $test = $4, and then use $test in the if statement.

  • What is wrong with my script.

    Im creatin' a script for nagios. It needs to warn me when the file is older then 24hr and show critical if the file does not exsist.
    $age="1440"
    $file=’c:\temp\’
    $filename='CGO.csv'
    $time = (get-childitem $file\$filename).LastWriteTime
    if(Test-Path $file\$filename)
    echo “OK status – file is OK”
    exit 0 #Return OK status
    ElseIf ($time -lt (get-date).AddMinutes(-$age))
    echo "WARNING status - $filename is older than 24 hours. Last write was $time"
    exit 1 #returns warning status
    else
    echo “CRITICAL status – file $filename doesn’t exist”
    exit 2 #returns critical status
    It is not working. Can anyone help me out.

    Try{   $MaxAgeMinutes =[int]$args[2]
    Catch{
         Write-Error $_
         exit
    # Process Limit
    $Limit = (Get-Date).AddMinutes(-$MaxAgeMinutes)
    ¯\_(ツ)_/¯

  • The fan is making a loud noise. Plus the battery icon on the bar has disappeared. When I connect the charger I don't get a light ( neither the green or the orange light). Please advise what's wrong plus how do I fi

    Please help. Noisy fan on my MacBook Pro. The light doesn't turn on when I connect the charger. Plus the battery icon has disappeared on the tool bar.

    Try resetting the  SMC http://support.apple.com/kb/ht3964

  • Anyone from ORACLE knows what's wrong with oidspadi.sh

    Hi,
    I downloaded the Cygwin and am trying to run oidspadi.sh it keeps giving the following error.
    $ ./oidspadi.sh
    : command not found 28:
    : command not found 38:
    : command not found 43:
    : command not found 47:
    : command not found 51:
    : command not found 58:
    : command not found 59:
    : command not found 60: clear
      OID Active Directory Plug-in Configuration
    Please make sure Database and OID are up and running.
    : command not found 67:
    : command not found 70:
    ./oidspadi.sh: line 103: syntax error near unexpected token `fi'
    '/oidspadi.sh: line 103: `      fi
    [//code]
    I did set my ORACLE_HOME and also am able to connect to OID but don't what's wrong with the script. I am using 10.1.2.0.2 on windows.
    Thanks                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    I found out the resolution please see Note:403469.1.
    Thanks

  • Macbook Pro 13-inch (10.6.8) random white/black screens and becomes unresponsive...what is wrong/what to do to solve?

    PLEASE PLEASE READ THIS I'M IN NEED OF URGENT HELP. || Heeey everyone! I'm new here. Please don't bite me. =))
    Okay. So I have a Macbook Pro, 13 inch (bought Dec. 2010). It's currently running on Snow Leopard (10.6.8). It had a hard drive crash in Feb. 2012...I had it replaced and lost all my files . It had two major falls (January 2011 & November 2012). Oh, and it also makes this weird grinding noise when you listen closely.
    Everything was going fine, until last week, I encountered a kernel panic. Restarted, but was faced with that awkward blank white screen thing at start up. I was told at the Apple Store back when my hard drive crashed in Feb. 2012 that repeated pressing down of the power button can be damaging, so I waited for it to run out of battery to restart. After that, it was normal again. I downloaded OnyX and verified/repaired permissions...nothing was out of the ordinary.
    THEN. The next day, in the middle of use, my mac suddenly black-screened. Not a lot of windows were open, and I wasn't doing anything that...will put a strain on anything. It wasn't total pitch-black like the screen looks like when it's turned off. I could still hear the hard drive working and making that grinding sound. I pressed the caps-lock key, and it didn't light up. =))) What, is it off or something? But I can still hear the hard drive there. And it's totally unresponsive. So I decided to restart by pressing down the power button. It was normal again...until a few hours later when it suddenly white-screened. OKAY it's white now. I don't know what that's supposed to mean. But it had the same symptoms as the black-screen. Unresponsive, caps-lock didn't light up, normal grinding sound as if the computer was still on. So I let it run out of battery so I could restart. Upon restarting, I opened Disk Utility and verified disk permissions. There was no damage, nothing again.
    I recently got uTorrent (around late December), and thought that it might have been that, so I deleted it and emptied trash. The next day, it did the black screen again. Same with the next day. There's at least one per day. It didn't seem to affect performance at all, everything still ran smoothly. I made sure to check disk permissions to see if everything was okay. And everything was.
    Then, about three days passed without any black/white screen and I thought that nuisance was over. BUT NO. Two days ago, I got black-white-white screened and I was...shocked. I let it run out of battery again. =))) Checked Disk Utility, again, nothing. So I decided to get that Software Update thingo that always pops up. I upgraded to 10.6.8. A day passed without the dreaded black/white screens. But yesterday, it white screened once. And today, it white screened again.
    I really can't figure out a concrete pattern. It seems random. But what I do know is that:
    1. It happens in the afternoon. All the time, consistently in the afternoon. LOOOL IDK what this is supposed to mean, but its one of the common factors. =))
    2. Most of the time, it happens when I leave the computer for about 30 seconds - 1 minute to get something. Or if I'm watching a long video (like a TV show episode), a period of time where I don't touch the mouse/press any keys. Is that related somehow?
    3. I can't do anything to get it out of the white/black screen except restart. Each time I restart, I check Disk Utility and nothing is wrong.
    And yes, I've went to the Apple Store to get this checked. All they said is: "Upgrade to Lion, maybe the error will disappear. If it does, then it was just a software error. If it doesn't...then sorry." LOOOOOOL NOT FALLING FOR THAT, not spending money when I'm not sure it'll fix the error. I want concrete answers.
    I'm a student, and my Christmas Break will be over in less than a week. SO I NEED ALL THE HELP IN THE WORLD PLEASE. What is wrong with my laptop? Can I fix this? Will opening it in safe mode help in any way? PLEASE I'M DESPERATE.

    Try these:
    See what's loading in your login items. - delete the ones you don't need.
    Open up Activity Monitor and under all processes, see what's using most of your cpu's resources.  Highlight the ones using the most % CPU and hit quit process.
    Next, open up disk utility and verify your disk.  Once that's done, verify disk permissions - repair if needed.
    Restart your Macbook and see if it speeds things up for you.
    good luck....

Maybe you are looking for

  • XPRA_UPG ERRORS UPGRADING TO ECC6

    Hello Gurus i am getting some errors during XPRAS_UPG.Ugrading from 4.7 to ECC6sr2 on Win2k3 64,SQL2005 I have checked R3up.ECO logs entries: STARTSAP continues... stopping on error 12 during EXECUTION OF REPORTS AFTER PUT tp returncode summary: TOOL

  • Transporting an object

    Hi Experts, How to transport an object for example org model or Business Partner from development Server to Production Server. Please provide me with some flow. Thank you

  • Unable to invoke BPEL HelloWorld from Oracle PL/SQL

    Hi, I am trying to invoke a BPEL process (HelloWorld) from Oracle PL/SQL package. I have downloaded the standard "demo_soap.sql" from oracle.com. Find below the PL/SQL block that I am using to invoke to the HelloWorld. DECLARE req Demo_Soap.request;

  • Light bar at the bottom

    My thunderbolt display has barely noticeable light bar at the bottom of the screen. Height of the bar about 2 cm. This part of the screen stands out if the entire background is a uniform gray image. The bar is also visible when the operating system i

  • Anyway to stay logged into facebook on N97

    Anyway to stay logged into facebook so i dont have to keep logging in each time i use it, I keep my phone content to off for the homescreen but everytime i connect i have to enter details again to facebook to login.