Missing keyword when try to use MERGE

I have COUNT_STATISTICS table that needs to be updated daily.
MODEL
NEW_COUNT
NEW_DATE
OLD_COUNT
OLD_DATE
PRNCT_CHANGE
XEDHRD
5206358
21-AUG-13
0
19-AUG-13
(null)
XLIMS
72669230
21-AUG-13
72669230
20-AUG-13
0
XEDHRD
5206358
22-AUG-13
5206358
21-AUG-13
0
XLIMS
72859644
22-AUG-13
72669230
21-AUG-13
0.262
so on and so forth...
Sometimes I have a new MODEL name coming in and I have to account for that and create a row in the table in that case.
Other times, all I have to do is INSERT new row in the table with new values.
Simple right?
Well, I was trying to use MERGE INTO but it is giving me problems...
This is what I did assuming I manually went in the table and added a new MODEL name and zeros for other columns before I did insertion...
#!/bin/bash
MODEL=$1
sqlplus -S username/password << EOF
whenever sqlerror exit 1;
set echo on
set verify off
INSERT INTO SEMANTIC.COUNT_STATISTICS(MODEL,NEW_COUNT,NEW_DATE,OLD_COUNT,OLD_DATE)
SELECT MODEL,
        SELECT COUNT(*)
        FROM TABLE(SEM_MATCH(
                ?s ?p ?o
         }',SEM_Models('$MODEL'),NULL,
        SEM_ALIASES(SEM_ALIAS('','http://VISION/DataSource/SEMANTIC#')),NULL))
    SYSDATE,
    NEW_COUNT,
    NEW_DATE
FROM SEMANTIC.COUNT_STATISTICS
WHERE MODEL = '$MODEL'
AND NEW_DATE = (
                select max(NEW_DATE)
                from SEMANTIC.COUNT_STATISTICS
                where MODEL = '$MODEL'
update SEMANTIC.COUNT_STATISTICS
set prnct_change =
   (NEW_COUNT-OLD_COUNT)/NULLIF(OLD_COUNT,0)*100
where model = '$MODEL'
AND NEW_DATE = (
                select max(NEW_DATE)
                from SEMANTIC.COUNT_STATISTICS
                where MODEL = '$MODEL'
COMMIT;
exit;
EOF
Now I added MERGE in front of INSERT so it checks if the MODEL name doesn't exist-it creates it:
MERGE INTO SEMANTIC.COUNT_STATISTICS s
USING (SELECT '${MODEL}' AS MODEL, 0 AS NEW_COUNT, SYSDATE AS NEW_DATE,
  0 AS OLD_COUNT, SYSDATE AS OLD_DATE FROM dual) t
on (s.MODEL = t.MODEL)
when not matched then
INSERT (s.MODEL, s.NEW_COUNT, s.NEW_DATE, s.OLD_COUNT, s.OLD_DATE)
VALUES (t.MODEL, t.NEW_COUNT, t.NEW_DATE, t.OLD_COUNT, t.OLD_DATE);
My code combined...
#!/bin/bash
MODEL=$1
  sqlplus -S username/password << EOF
  whenever sqlerror exit 1;
  set echo on
  set verify off
  MERGE INTO SEMANTIC.COUNT_STATISTICS s
  USING (SELECT '${MODEL}' AS MODEL, 0 AS NEW_COUNT, SYSDATE AS NEW_DATE, 0 AS OLD_COUNT, SYSDATE AS OLD_DATE FROM dual) t
  on (s.MODEL = t.MODEL)
  when not matched then
  INSERT (s.MODEL, s.NEW_COUNT, s.NEW_DATE, s.OLD_COUNT, s.OLD_DATE)
  VALUES (t.MODEL, t.NEW_COUNT, t.NEW_DATE, t.OLD_COUNT, t.OLD_DATE);
  exit;
EOF
model_exists () {
  sqlplus -s username/password <<!
    set heading off
    set feedback off
    set verify off
    set pages 0
    SELECT count(MODEL)
    FROM SEMANTIC.COUNT_STATISTICS
    where MODEL ='$MODEL' AND TO_DATE(NEW_DATE, 'DD-MON-YY') = TO_DATE(SYSDATE, 'DD-MON-YY');
    exit;
modelcount=$(model_exists $1)
if [ "${modelcount:-0}" -ne 0 ]; then
    sqlplus -S username/password << EOF
    whenever sqlerror exit 1;
    set echo on
    set verify off
    INSERT INTO SEMANTIC.COUNT_STATISTICS(MODEL,NEW_COUNT,NEW_DATE,OLD_COUNT,OLD_DATE)
    SELECT MODEL,
  SELECT COUNT(*)
  FROM TABLE(SEM_MATCH(
  '{?s ?p ?o }',SEM_Models('$MODEL'),NULL,
  SEM_ALIASES(SEM_ALIAS('','http://VISION/DataSource/SEMANTIC#')),NULL))
    SYSDATE,
    NEW_COUNT,
    NEW_DATE
    FROM SEMANTIC.COUNT_STATISTICS
    WHERE MODEL = '$MODEL'
    AND NEW_DATE = (
  select max(NEW_DATE)
  from SEMANTIC.COUNT_STATISTICS
  where MODEL = '$MODEL'
  COMMIT;
  exit;
EOF
else
   sqlplus -S  username/password << EOF
  whenever sqlerror exit 1;
  set echo on
  set verify off
  UPDATE COUNT_STATISTICS
  SET  MODEL = '$MODEL',
  NEW_COUNT = (SELECT COUNT(*) FROM TABLE(SEM_MATCH('{?s ?p ?o}',SEM_Models('$MODEL'),NULL,
  SEM_ALIASES(SEM_ALIAS('','http://VISION/DataSource/SEMANTIC#')),NULL))
  NEW_DATE  = SYSDATE,
  OLD_COUNT = NEW_COUNT,
  OLD_DATE  = NEW_DATE
  WHERE MODEL = '$MODEL'
  AND NEW_DATE = (
  select max(NEW_DATE)
  from SEMANTIC.COUNT_STATISTICS
  where MODEL = '$MODEL'
  COMMIT;
  exit;
EOF
fi
sqlplus -S username/password << EOF
  whenever sqlerror exit 1;
  set echo on
  set verify off
  update COUNT_STATISTICS
  set prnct_change =
    (NEW_COUNT-OLD_COUNT)/NULLIF(OLD_COUNT,0)*100
  where model = '$MODEL'
  AND NEW_DATE = (
  select max(NEW_DATE)
  from SEMANTIC.COUNT_STATISTICS
  where MODEL = '$MODEL'
  COMMIT;
  exit;
EOF
But this is creating two rows if it is a new MODEL, ie:
./load_myScript.sh  MODELNAME
MODEL
NEW_COUNT
NEW_DATE
OLD_COUNT
OLD_DATE
PRNCT_CHANGE
MODELNAME
72669230
22-AUG-13
0
22-AUG-13
(null)
MODELNAME
0
22-AUG-13
0
22-AUG-13
(null)
This is not what I want. I want to create a new row if it doesn't exist and then update that same one for that day. But tomorrow it should INSERT a new one for that same MODEL name.
Does anyone see what I am doing wrong?

Hi,
MODEL is an Oracle keyword, so it causes confusion to have a column named MODEL.  Errors like "Missing Keyword" can occur when  Oracle thinks you're talking about the MODEL clause, rather than the column.
The best solution is not to use Oracle keywords (as found in v$reserverd words) for you own column names, or other identifiers.  MODEL_NAME and MODEL_ID are good names for columns
If you really must use that column name, qualify it with the table name, and/or put the column name in double-quotes (case-sensitive), e.g.
count_statistics."MODEL"

Similar Messages

  • Problem when try to use ACSE+ Windows AD to authenticate two kind of WLAN c

    I met a problem when try to use ACSE+ Windows AD to authenticate two kind of WLAN clients:
    1. Background:
    We have two WLAN: staff and student, both of them will use PEAP-MSCHAPv2, ACSE will be the Radius server, it will use Windows AD's user database. In AD, they create two groups: staff and student. The testing account for staff is staff1, the testing account for student is student1.
    2. Problem:
    If student1 try to associate to staff WLAN, since both staff and student WLAN using the same authentication method, the auth request will be send to AD user database, since student1 is a valid user account in AD, then it will pass the authentication, then it will join the staff WLAN. How to prevent this happen?
    3. Potential solution and its limitation:
    1) Use group mapping in ACSE(Dynamic VLAN Assignment with WLCs based on ACS to Active Directory Group Mapping), but ACS can only support group mapping for those groups that have no more than 500 users. But the student group will definitely exceed 500 users, how to solve it?
    2) Use methods like “Restrict WLAN Access based on SSID with WLC and Cisco Secure ACS”: Configure DNIS with ssid name in NAR of ACSE, but since DNIS/NAR is only configurable in ACSE, don't know if AD support it or not, is there any options in AD like DNIS/NAR in ACSE?
    Thanks for any suggestions!

    I think the documentation for ACS states:
    ACS can only support group mapping for users who belong to 500 or fewer Windows groups
    I read that as, If a user belongs to >500 Windows Group, ACS can't map it. The group can have over 500 users, its just those users can't belong to more than 500 groups.

  • Problem when try to use 2 computers

    Hello there.
    I'm now facing a problem when try to use 2 computers. Specifically, I downloaded my ebook (pdf form) in my laptop and open it without problems. But when I tried to reopen the same book (from human kinetics site) to my pc, the known message revealed ("E_LIC_ALREADY" etc etc).
    As I realised, in my laptop, the ADE wasn't authorized (in fact, "is authorized without an ID"). I tried but didn't achieve to authorize it (it's not accepting my username and password, saying that the specific ID is already used, obviously when I made the similar procedure on my pc, a year ago), whereas I'm also not able to re-open the book in my pc (I made copy-paste to the appropriate folder of my pc, by the way...). What's the solution in this case? I mean, it's very annoying for me and I desperately want to solve it...
    Thank you in advance,
    Nikolas

    Answer 1 : Really not quite sure about this ....
    Answer 2 : turn the card upside down and check the model number .. the model number would be WPC54G and if there v2/v3/v4 after it it means that the card is version 1 ....
    Answer 3: As you windows xp , go to start >> programs >> uninstall wireless notebook adapter.... insert the CD for the adapter ...take the card out and insert it back again.... follow the instructions on the found new hardware wizard ... this will install the drivers for the adapter and then you can use the windows wireless configuration utility to connect to the wireless network ....

  • Flashplayer in computer,when try to use,says needs to be installed ??

    flashplayer in computer,but says needs to be installed when try to use it ????

    Need to know:
    Your operating system (Win, Mac, xpXP, Vista, 7, 8)?
    Your Browser (IE, Firefox, Chrome, Opera, Safari)?
    Any error messages?
    Green screen in place of video?

  • Try to use Merge to HDR...

    Try to use Merge to HDR and Photoshop CC stop working...I don't know why it keeps doing, please help.

    Meredith:
    Thanks for being willing to help but since the post you referred to things have happened.  The latest update to Photoshop solved the Content Aware Fill not working in 64 bit and the HDR Merge problem, etc. not working in 64 bit was solved by Chris Cox (Adobe employee) determining it was an OS corruption issue.  I used Font Doctor to isolate them and after their removal everything is now working fine.
    Regards,
    Herman R.

  • Wheni try to use the VHScrCap as video the Adobe flash media live encoder 3.2 just closes?

    Wheni try to use the VHScrCap as video the Adobe flash media live encoder 3.2 just closes?
    how do i fix this?

    Moving the discussion to Flash Media Forum.
    Regards,
    Anit Kumar

  • Error when try to use cmd tools (copylocale, mxmlc, etc)

    Hi guys,
    I have a Windows 7 64Bits with Java Jdk 1.7.0_25 64Bits (with Jre).
    When I try to use cmd tools that came with Flash Builder 4.7, I get the following error:
    Command: copylocate en_US pt_PT
    Error:
         Error loading: D:\Software\Java\jdk1.7.0_25\jre\bin\server\jvm.dll
    The same error occore when try to use mxmlc.
    I have the JAVA_HOME defined with D:\Software\Java\jdk1.7.0_25
    I allready try to reinstall everything and show me the same error.
    Can anyone help me?
    Thanks,
    Pedro Quintas

    Hello again Joe Bo... and all of others,
    I´m with a doubt after installing the CPU patch, which is related to post-installation tasks. I´m in this momment install the SAP System and it was during this installation that sapinst asked me to install the database and all other activities after this installation that are related to the database, for example, the updating of database patches.
    At README file in chapter 3.3.2 Post Installation Instructions is described the following:
    After installing the patch, perform the following actions:
    1.Load modified .sql files into the database, as explained in Section 3.3.2.1.
    2.Recompile views in the database, if necessary, as explained in Section 3.3.2.2.
    In this momment, as you certainly know, I still don´t have a database because the sap system isn´t yet totally installed (I´m in phase 8 of sapinst wizard).
    I only have to do this "Post Installation Tasks" when I have a database, this database will be created after that phase 8 - so now I don´t need to perform the post steps... am I right?
    Thanks in advance,
    João Dimas - Portugal

  • #Error & #Syntax when we are using merged dimension in BO4.1 SP3

    Dear All,
    We are using BO4.1 SP3 and Bex query as datasource.
    When we are trying to take merged dimensions in Report block its giving #Syntax Error.
    When we are defining variable with merged dimension, its giving #Error message and the merged dimension is deleted from the definition.
    Please guide how can I use merged dimension.
    Kindly let us know if there are some update required in the current BO version.
    Warm Regards,
    Sonal

    First things abt merge dimension is that merge is applicable only on dimension not on measures.
    And other is dimension that are going to be merge should have same data type.
    I think you should check these conditions then it will works.
    Merge is nothing but full outer join between two data providers. It helps joining two result sets on webi level.
    Kindly attach your screen shots so that it would be helpful.

  • Java.lang.NoSuchMethodError when try to use RDBMS WLI adapter sp2

    Hi,
    We have encountered a problem when trying to use the latest version of the WLI
    RDBMS adapter downloaded from the website.
    This adapter comes as an ear file of size 4026K.
    Has anyone been able to get this version to work??
    Was using the earlier version of size 3278K happily but found a few bugs in it
    so wanted to use the later version but when we do, we can't call any Application
    View services.
    When we try to call a service we get the error:
    java.lang.NoSuchMethodError at com.ibi.beardbms.cci.InteractionImpl.execute(InteractionImpl.java:217)
    at
    com.bea.adapter.cci.AbstractDocumentRecordInteraction.execute(Unknown Source)
    at com.bea.wlai.client.bean.ApplicationViewBean.executeRequest(Unknown Source)
    at com.bea.wlai.client.bean.ApplicationViewBean.executeRequest(Unknown Source)
    at com.bea.wlai.client.bean.ApplicationViewBean.invokeService(Unknown Source)
    at com.bea.wlai.client.bean.ApplicationViewBean.invokeService(Unknown Source)
    at com.bea.wlai.client.bean.ApplicationViewBean.invokeService(Unknown Source)
    at com.bea.wlai.client.bean.ApplicationViewBean_g38mgs_EOImpl.invokeService(ApplicationViewBean_g38mgs_EOImpl.java:732)

    Hi Adam,
    You need to get Patch CR095687 in order to use this adapter with SP2, (and
    stop this exception). It's mentioned in the release notes
    (http://edocs.bea.com/wladapters/rdbms/docs70sp2/pdf/relnotes.pdf), a the
    bottom of page 3. You need to contact BEA support for this patch.
    Dave
    "Adam Finlayson" <[email protected]> wrote in message
    news:3ea8f771$[email protected]..
    >
    Hi,
    We have encountered a problem when trying to use the latest version of theWLI
    RDBMS adapter downloaded from the website.
    This adapter comes as an ear file of size 4026K.
    Has anyone been able to get this version to work??
    Was using the earlier version of size 3278K happily but found a few bugsin it
    so wanted to use the later version but when we do, we can't call anyApplication
    View services.
    When we try to call a service we get the error:
    java.lang.NoSuchMethodError atcom.ibi.beardbms.cci.InteractionImpl.execute(InteractionImpl.java:217)
    at
    com.bea.adapter.cci.AbstractDocumentRecordInteraction.execute(UnknownSource)
    at com.bea.wlai.client.bean.ApplicationViewBean.executeRequest(UnknownSource)
    at com.bea.wlai.client.bean.ApplicationViewBean.executeRequest(UnknownSource)
    at com.bea.wlai.client.bean.ApplicationViewBean.invokeService(UnknownSource)
    at com.bea.wlai.client.bean.ApplicationViewBean.invokeService(UnknownSource)
    at com.bea.wlai.client.bean.ApplicationViewBean.invokeService(UnknownSource)
    atcom.bea.wlai.client.bean.ApplicationViewBean_g38mgs_EOImpl.invokeService(App
    licationViewBean_g38mgs_EOImpl.java:732)

  • Acrobat XI Pro is requesting a password when try to use

    If I open Acrobat XI from my Start Menu, It comes up with the program possiblities (edit open, etc). The first time I try to use it, it goes to a screen with Acrobat XI trial; I click on License this software, and it as me to sign in. Then it comes up with a request for Serial Number. Any suggestions would be appreciated

    I'm assuming you did subscribe before, you aren't just testing the trial.
    1. Make sure you are signing in with the same Adobe ID used for your subscription.
    2. Check your account info on Adobe's site to make sure the subscription is (still) active.

  • Missing resources when try to open exel file

    Hi guys 
    I have this one problem driving me insane. 
    One of our users have a problem with excel. 
    It seems to be pretty random. it even does this with small standard excel files. 
    When trying to open a new exel file, it says missing resources.
    I have tried to kill everything in task manager using the memory, so it uses about 30% memory but still. 
    i have tried to expand the page file 
    tried to reinstall office 
    - But with no luck 
    The client is a 32 bit with 4 gigs of ram. 
    I've readden on a forum that it could be a office error if you tried to mark all colums. 
    But the user dont mark anything when the error occurs. 
    Looking forward to hear from you :-) 

    Hi Jesper,
    Since this memory error message can be very generic and don't always identify the real cause of the issue. If you are sure not hitting a resource limitation, you can try methods in the following link.
    http://support.microsoft.com/kb/2779852/
    http://support.microsoft.com/kb/2655178/
    For more reference about this error:
    http://blogs.technet.com/b/the_microsoft_excel_support_team_blog/archive/2012/05/22/quot-excel-cannot-complete-this-task-with-available-resources-quot-after-installing-ms12-030.aspx
    https://www.add-ins.com/support/out-of-memory-or-not-enough-resource-problem-with-microsoft-excel.htm
    If there is more detail information about this issue, don't hesitate to tell me. I’ll analyze this issue in detail as soon as getting it.
    Best regards,
    Greta Ge
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • N80 restarts when try to use uPnP

    I have a N80 Internet Edition with firmware 5.0719.0.2 and I installed the Home Media Server application from the CD.
    I use windows XP SP2 Professional and a Comtrend CT-536+ router.
    But when I try to enter in home network in the Gallery, the phone restarts in 3-4 seconds, I think that when it detects the PC.
    Also I have updated the Home Media Server over internet.
    What I can do?
    Thanks

    Problem is related with phone I think.
    Can perform a soft reset or hard reset.

  • Error When try to use rowid with table alias

    I tried to use table alias to test functions of rules manager and met the following problems.
    1. I clone tables employees and departments from HR schema.
    2. create event_struct as following:
    BEGIN
    dbms_rlmgr.create_event_struct(event_struct => 't_a');
    dbms_rlmgr.add_elementary_attribute(event_struct => 't_a',
    attr_name => 'a_employees',
    tab_alias => exf$table_alias('employees'));
    dbms_rlmgr.add_elementary_attribute(event_struct => 't_a',
    attr_name => 'a_departments',
    tab_alias => exf$table_alias('departments'));
    END;
    3. create rule class as following:
    BEGIN
    dbms_rlmgr.create_rule_class(rule_class => 't_as',
    event_struct => 't_a',
    action_cbk => 't_acb',
    rslt_viewnm => 't_arv');
    END;
    4. after adding a rule to the rule class, I try to test as the following
    DECLARE
    r_emp ROWID;
    r_dept ROWID;
    CURSOR a_cur IS
    SELECT emp.ROWID, dept.ROWID
    FROM employees emp, departments dept
    WHERE emp.department_id = dept.department_id;
    i NUMBER := 1;
    BEGIN
    OPEN a_cur;
    LOOP
    FETCH a_cur
    INTO r_emp, r_dept;
    EXIT WHEN a_cur%NOTFOUND;
    dbms_output.put_line(i);
    i := i + 1;
    dbms_output.put_line(r_emp);
    dbms_rlmgr.add_event(rule_class => 't_alia',
    event_inst => r_emp,
    event_type => 'employees');
    dbms_rlmgr.add_event(rule_class => 't_alia',
    event_inst => r_dept,
    event_type => 'departments');
    END LOOP;
    END;
    But I got the following error
    SQL> DECLARE
    2 r_emp ROWID;
    3 r_dept ROWID;
    4 CURSOR a_cur IS
    5 SELECT emp.ROWID, dept.ROWID
    6 FROM employees emp, departments dept
    7 WHERE emp.department_id = dept.department_id;
    8 i NUMBER := 1;
    9 BEGIN
    10 OPEN a_cur;
    11 LOOP
    12 FETCH a_cur
    13 INTO r_emp, r_dept;
    14 EXIT WHEN a_cur%NOTFOUND;
    15 dbms_output.put_line(i);
    16 i := i + 1;
    17 dbms_output.put_line(r_emp);
    18 dbms_rlmgr.add_event(rule_class => 't_alia',
    19 event_inst => r_emp,
    20 event_type => 'employees');
    21 dbms_rlmgr.add_event(rule_class => 't_alia',
    22 event_inst => r_dept,
    23 event_type => 'departments');
    24 END LOOP;
    25 END;
    26 /
    DECLARE
    ERROR at line 1:
    ORA-06550: line 1, column 36:
    PLS-00201: identifier 'AAAVN9AAEAAAQH8AAA' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    ORA-06512: at "EXFSYS.DBMS_RLMGR", line 974
    ORA-06512: at line 18

    Hello,
    Rowids for the individual tables can be added as events only if the rule class is configured as a Composite one. For all other cases, rowids are treated just as data and they should be formatted as string of name-value pairs or instances of AnyData. Your script suggests that you intended to create a composite rule class so that you could add rowids individually. Please recreate the rule class as composite and try again. The error message you received is incorrect and has been fixed to indicate that the error is with the format of the data item passed in.
    Hope this helps,
    -Aravind.

  • Missing Mail when try a search but subject titles and other info is there

    I have Mail on the iMac computer and was searching with a word and found a bunch of things I wanted -- but looking at some of the mail that shows up in the search result window there is nothing in the pane below = then I looked across and while some of the pieces of mail did have their enclosing mailbox noted in that column [and showed up in the pane below], the missing ones did not have any mailbox reference == they show up as mail, with date, and subject and to and from etc. but there is no mailbox and when they are selected there is nothing there - and it's not because they are off the web/server -- I did find them over on another machine in its storage -= but why would they show up at all in a search on the iMac?? That's really confusing....

    To protect against potential Java vulnerabilities, Firefox now asks you to activate Java by default, for each website you visit that uses Java. When you see an "Activate Java" message box, simply click it to load the Java content normally.
    [[Image:Fx24-JavaActivate]]
    If there is no visible area to activate Java content in the page, click the plugin icon in the address bar. In the message panel that opens, choose "Allow Now" to enable Java content temporarily.
    [[Image:Fx24-JavaAllowNow]]
    The next time you visit the site or any other that uses Java you will see this message again. If you want to always activate Java for a particular site, you can use the "Allow and Remember" option shown above.
    For more information about using Java in Firefox, see the articles [[How to allow Java on trusted sites]] and [[Use the Java plugin to view interactive content on websites]].
    '''Important:''' After activating Java, you may see a security prompt, asking you to confirm that you want to run Java, or you may see an "Application Blocked" message, depending on the website and your security settings in the [http://www.java.com/en/download/help/jcp_security.xml#control%20panel Java Control Panel]. These messages come from Java itself, not from Firefox.
    For help with Java security prompts and "Application Blocked" messages, see the Java Help pages [http://www.java.com/en/download/help/appsecuritydialogs.xml What should I do when I see a security prompt from Java?] and [http://www.java.com/en/download/help/java_blocked.xml Why are Java applications blocked by your security settings with the latest Java?]
    Does this solve your problem? Let us know.

  • Program error when try to use 3D repousse in Photoshop CS5 extended?

    Please help!!!! Unable to use 3D repousse Photoshop CS5 Extended  (my system info is described below)
    I tried almost everything that is available in Adobe library help, also re-installed programs as requested by Adobe support (suspected to get rid of me), it did not solve the problem.
    I used to have 3D capabilities, and also crop tool worked well before (now it changes all layers when using crop even in background).  My PC is same,  nor I downloaded plugins or changed video cards (these things are too advanced for me!), also restored preferences many times.
    My system makes automatic updates, reviewed graphics and adobe as recommended.
    OpenGL settings is odd …only can access basic, other modes are not highlighted (normal or advanced).
    ERRORS (for 3D Text)    
    1-“Your 3D scene now exceeds the limits of lights and/or textures for the video card’s hardware-accelerated 3D rendering. As long as the limits are exceeded, 3D rendering will be done in software only, and some features (e.g Repousse)will be disabled.”
    2- “Your video card does not meet the requirements for hardware-accelerated 3D rendering. All 3D will be rendered with software only “
    3-“ Could no complete the text layer command because of a program error”
    ERROR (for object)
    Open GL/GPU HARDWARE ACCELERATION IS CURRENTLY  DISABLED. 3D WILL NOW BE RENDERED WITH SOFTWARE ONLY.  TO ENABLE OPEN/GL  ACCELERATION, GO TO PREFERENCES > PERFORMANCE TAB AND CHECK THE “ENABLE OPENGL GRAWING” CHECK BOX.
    Is it possible that I have a GPU Sniffer? all these terms I have learned recently =)   but I have a healthy & capable graphic card and accepted by adobe standards.
    SYSTEM INFO 
    Adobe Photoshop Version: 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch]) x64
    Operating System: Windows 7 64-bit
    Version: 6.1 Service Pack 1
    System architecture: Intel CPU Family:6, Model:5, Stepping:2 with MMX, SSE Integer, SSE FP, SSE2, SSE3, SSE4.1, SSE4.2
    Physical processor count: 4
    Processor speed: 2128 MHz
    Built-in memory: 3895 MB
    Free memory: 2210 MB
    Memory available to Photoshop: 3280 MB
    Memory used by Photoshop: 70 %
    Image tile size: 128K
    Image cache levels: 4
    OpenGL Drawing: Enabled.
    OpenGL Drawing Mode: Basic
    OpenGL Allow Normal Mode: True.
    OpenGL Allow Advanced Mode: False.
    OpenGL Crash File: Not Detected.
    OpenGL Allow Old GPUs: Not Detected.
    Video Card Vendor: Intel
    Video Card Renderer: Intel(R) Graphics Media Accelerator HD
    Display: 1
    Display Bounds:=  top: 0, left: 0, bottom: 768, right: 1360
    Video Card Number: 1
    Video Card: Intel(R) Graphics Media Accelerator HD
    Driver Version: 8.15.10.1968
    Driver Date: 20091008000000.000000-000
    Video Card Driver: igdumd64.dll,igd10umd64.dll,igdumdx32,igd10umd32
    Video Mode: 1360 x 768 x 4294967296 colors
    Video Card Caption: Intel(R) Graphics Media Accelerator HD
    Video Card Memory: 1723 MB
    Serial number: 
    Application folder: C:\Program Files\Adobe\Adobe Photoshop CS5.1 (64 Bit)\
    Temporary file path: C:\Users\Patricia\AppData\Local\Temp\
    Photoshop scratch has async I/O enabled
    Scratch volume(s):
      C:\, 284.6G, 218.5G free
    Primary Plug-ins folder: C:\Program Files\Adobe\Adobe Photoshop CS5.1 (64 Bit)\Plug-ins\
    Additional Plug-ins folder: not set
    Installed components:
       A3DLIBS.dll   A3DLIB Dynamic Link Library   9.2.0.112
       ACE.dll   ACE 2010/12/13-23:37:10   64.449933 64.449933
       adbeape.dll   Adobe APE 2011/01/17-12:03:36   64.452786 64.452786
    AdobeLinguistic.dll   Adobe Linguisitc Library   5.0.0  
       AdobeOwl.dll   Adobe Owl 2010/06/03-13:43:23   3.0.93 61.433187
    AdobeOwlCanvas.dll   Adobe Owl Canvas   3.0.68 61.2954
       AdobePDFL.dll   PDFL 2010/12/13-23:37:10   64.341419 64.341419
       AdobePIP.dll   Adobe Product Improvement Program   5.5.0.1265
       AdobeXMP.dll   Adobe XMP Core   5.0 64.140949
    AdobeXMPFiles.dll   Adobe XMP Files   5.0   64.140949
    AdobeXMPScript.dll   Adobe XMP Script   5.0   64.140949
       adobe_caps.dll   Adobe CAPS 4,0,42,0  
    adobe_OOBE_Launcher.dll   Adobe OOBE Launcher   2.0.0.36 (BuildVersion: 2.0; BuildDate: Mon Jan 24 2011 21:49:00) 1.000000
       AFlame.dll   AFlame 2011/01/10-23:33:35   64.444140 64.444140
       AFlamingo.dll   AFlamingo 2011/01/10-23:33:35   64.436825 64.436825
       AGM.dll   AGM 2010/12/13-23:37:10   64.449933 64.449933
       ahclient.dll    AdobeHelp Dynamic Link Library   1,6,0,20
       aif_core.dll   AIF 2.0   53.422628
       aif_ogl.dll   AIF 2.0   53.422628
       amtlib.dll   AMTLib (64 Bit)   4.0.0.21 (BuildVersion: 4.0; BuildDate: Mon Jan 24 2011 21:49:00)   1.000000
    amtservices.dll   AMTServices (64 Bit)   4.0.0.21 (BuildVersion: 4.0; BuildDate: Mon Jan 24 2011 21:49:00) 1.000000
       ARE.dll   ARE 2010/12/13-23:37:10   64.449933 64.449933
       asneu.dll    AsnEndUser Dynamic Link Library   1, 7, 0, 1
       AXE8SharedExpat.dll   AXE8SharedExpat 2011/01/10-23:33:35   64.436825 64.436825
       AXEDOMCore.dll   AXEDOMCore 2011/01/10-23:33:35   64.436825 64.436825
       Bib.dll   BIB 2010/12/13-23:37:10   64.449933 64.449933
       BIBUtils.dll   BIBUtils 2010/12/13-23:37:10   64.449933 64.449933
    boost_threads.dll   DVA Product   5.0.0  
       cg.dll   NVIDIA Cg Runtime   2.0.0015
       cgGL.dll   NVIDIA Cg Runtime   2.0.0015
       CoolType.dll   CoolType 2010/12/13-23:37:10   64.449933 64.449933
       data_flow.dll   AIF   2.0 53.422628
       dvaadameve.dll   DVA Product 5.0.0  
       dvacore.dll   DVA Product 5.0.0  
       dvaui.dll   DVA Product 5.0.0  
    ExtendScript.dll   ExtendScript 2011/01/17-17:14:10   61.452840   61.452840
       FileInfo.dll   Adobe XMP FileInfo   5.0 64.140949
       icucnv36.dll   International Components for Unicode 2009/06/17-13:21:03    Build gtlib_main.9896  
       icudt36.dll   International Components for Unicode 2009/06/17-13:21:03    Build gtlib_main.9896  
       image_flow.dll   AIF 2.0   53.422628
    image_runtime.dll   AIF   2.0 53.422628
       JP2KLib.dll   JP2KLib 2010/12/13-23:37:10   64.181312 64.181312
    libifcoremd.dll   Intel(r) Visual Fortran Compiler   10.0 (Update A)  
       libmmd.dll   Intel(r) C Compiler, Intel(r) C++ Compiler, Intel(r) Fortran Compiler   10.0  
       LogSession.dll   LogSession 2.1.2.1263  
       MPS.dll   MPS 2010/12/13-23:37:10   64.450375 64.450375
       msvcm80.dll   Microsoft® Visual Studio® 2005   8.00.50727.4940  
       msvcm90.dll   Microsoft® Visual Studio® 2008   9.00.30729.6161  
       msvcp80.dll   Microsoft® Visual Studio® 2005   8.00.50727.4940  
       msvcp90.dll   Microsoft® Visual Studio® 2008   9.00.30729.6161  
       msvcr80.dll   Microsoft® Visual Studio® 2005   8.00.50727.4940  
       msvcr90.dll   Microsoft® Visual Studio® 2008   9.00.30729.6161  
    pdfsettings.dll   Adobe PDFSettings   1.04  
       Photoshop.dll   Adobe Photoshop CS5.1   CS5.1
       Plugin.dll   Adobe Photoshop CS5   CS5  
       PlugPlug.dll   Adobe(R) CSXS PlugPlug Standard Dll (64 bit)   2.5.0.232  
       PSArt.dll   Adobe Photoshop CS5.1   CS5.1
       PSViews.dll   Adobe Photoshop CS5.1   CS5.1
       SCCore.dll   ScCore 2011/01/17-17:14:10   61.452840 61.452840
       tbb.dll   Threading Building Blocks   2, 1, 2009, 0201  
       TfFontMgr.dll   FontMgr 9.3.0.113  
       TfKernel.dll   Kernel 9.3.0.113  
       TFKGEOM.dll   Kernel Geom 9.3.0.113  
       TFUGEOM.dll   Adobe, UGeom©   9.3.0.113
    updaternotifications.dll   Adobe Updater Notifications Library   2.0.0.15 (BuildVersion: 1.0; BuildDate: BUILDDATETIME)   2.0.0.15
       WRServices.dll   WRServices Thursday January 21 2010 12:13:3   Build 0.11423   0.11423
       wu3d.dll   U3D Writer 9.3.0.113  
    Installed plug-ins:
       3D Studio 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
       Accented Edges 12.0
       ADM 3.11x01
       Angled Strokes 12.0
       Average 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
       Bas Relief 12.0
       BMP 12.0.2
       Camera Raw 6.3
       Chalk & Charcoal 12.0
       Charcoal 12.0
       Chrome 12.0
       Cineon 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
       Clouds 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
       Collada 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
       Color Halftone 12.0.2
       Colored Pencil 12.0
       CompuServe GIF 12.0.2
       Conté Crayon 12.0
       Craquelure 12.0
       Crop and Straighten Photos 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
       Crop and Straighten Photos Filter 12.0.2
       Crosshatch 12.0
       Crystallize 12.0.2
       Cutout 12.0
       Dark Strokes 12.0
       De-Interlace 12.0.2
       Dicom 12.0
       Difference Clouds 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
       Diffuse Glow 12.0
       Displace 12.0.2
       Dry Brush 12.0
       Eazel Acquire 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
       Embed Watermark 4.0
       Entropy 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
       Extrude 12.0.2
       FastCore Routines 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
       Fibers 12.0.2
       Film Grain 12.0
       Filter Gallery 12.0
       Fresco 12.0
       Glass 12.0
       Glowing Edges 12.0
       Google Earth 4 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
       Grain 12.0
       Graphic Pen 12.0
       Halftone Pattern 12.0
       HDRMergeUI 12.0
       IFF Format 12.0.2
       Ink Outlines 12.0
       JPEG 2000 2.0
       Kurtosis 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
       Lens Blur 12.0
       Lens Correction 12.0.2
       Lens Flare 12.0.2
       Lighting Effects 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
       Liquify 12.0.1
       Matlab Operation 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
       Maximum 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
       Mean 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
       Measurement Core 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
       Median 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
       Mezzotint 12.0.2
       Minimum 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
       MMXCore Routines 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
       Mosaic Tiles 12.0
       Multiprocessor Support 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
       Neon Glow 12.0
       Note Paper 12.0
       NTSC Colors 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
       Ocean Ripple 12.0
       OpenEXR 12.0.2
       Paint Daubs 12.0
       Palette Knife 12.0
       Patchwork 12.0
       Paths to Illustrator 12.0.2
       PCX 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
       Photocopy 12.0
       Photoshop 3D Engine 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
       Picture Package Filter 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
       Pinch 12.0.2
       Pixar 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
       Plaster 12.0
       Plastic Wrap 12.0
       PNG 12.0.2
       Pointillize 12.0.2
       Polar Coordinates 12.0.2
       Portable Bit Map 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
       Poster Edges 12.0
       Radial Blur 12.0.2
       Radiance 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
       Range 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
       Read Watermark 4.0
       Reticulation 12.0
       Ripple 12.0.2
       Rough Pastels 12.0
       Save for Web & Devices 12.0
       ScriptingSupport 12.1
       Shear 12.0.2
       Skewness 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
       Smart Blur 12.0.2
       Smudge Stick 12.0
       Solarize 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
       Spatter 12.0
       Spherize 12.0.2
       Sponge 12.0
       Sprayed Strokes 12.0
       Stained Glass 12.0
       Stamp 12.0
       Standard Deviation 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
       Sumi-e 12.0
       Summation 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
       Targa 12.0.2
       Texturizer 12.0
       Tiles 12.0.2
       Torn Edges 12.0
       Twirl 12.0.2
       U3D 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
       Underpainting 12.0
       Vanishing Point 12.0
       Variance 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
       Variations 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
       Water Paper 12.0
       Watercolor 12.0
       Wave 12.0.2
       Wavefront|OBJ 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
       WIA Support 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
       Wind 12.0.2
       Wireless Bitmap 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
       ZigZag 12.0.2
    Plug-ins that failed to load: NONE
    Flash:
       Mini Bridge
       Access CS Live
       Flash
       Kuler
       CS Review
    Installed TWAIN devices: NONE

    thank you for replying...but it seems an easy answer again  like one given by support....I had photoshop working perfectly before with same video card, I think in one project I clicked something in program (photoshop)that was not ready to correct it by itself... It should be available for the program to give warning several times to the user, I do not know what made Photoshop to disable OpenGL settings, and not be able to reverse action!!!!!  How do I change a GPU sniffer?  I an not a tech, all these things I just learned reading....had spent hundreds of hours....really dissapointed of Adobe and  its support....it is not fair to sell an expensive program without support, it seems to me that  I know now more than a live customer support.

Maybe you are looking for

  • External Monitor - Mirror Only ... OR is Extended Desktop possible ?

    If I connect a monitor to my new Intel iMac must it mirror the built-in monitor or can it be set to extend the Desktop ?? I have seen a bit of software called Desktop Spanning or something like that to make extending the desktop accross a second moni

  • Itunes wont sync anything to my ipod nor will it authorize my computer!

    I just restored my IPod touch 2 gen and went to sync everything back onto it...but itunes will not sync any of my music nor apps that i have previously bought.  The message said i had to authorize my computer but and error always comes up! (-42408) P

  • Customer returns report with f.s,and t.s with coding....used vbak,kna1,

    hai my  name is raghu i want some information....any one given functional spech....how to write technical spech with coding....plse send as soon as possible plse some example send to me... thanks raghu

  • Populate Report Columns On Entry

    I have 3 columns in the detail portion of my master detail tabular form: barcode (editable) game_no (not editable) pack_no (not editable) I am using a handheld scanner to capture a barcode number and append a tab character. This triggers the javascri

  • License Recovery Tool?

    Hi, After migrating all my apps and documents from an old Mac Book Pro to a new one 2 weeks ago, my Lightroom 4 works fine but InDesign and PhotoShop insist that the licensing has stopped working. After trying to find a phone number for Adobe custome