Suspended. Reason: 116 - Invalid Identifier

Hello Everybody,
I hope someone here can help me.
My Blackberry Curve stopped receiving or sending data comunications last night.  My service provider(Rogers) troubleshot the issue down to the RIM servers.  Rogers stated that they could not access the RIM envirnoment to resolve this and I was given a phone number.  1 800 327-9085 
It looks like I need to pay for a support call in order to have my Blackberry reinstated. This is of course ridiculous...since it was through no fault of mine that this issue has occured.
The error message: Suspended. Reason: 116 - Invalid Identifier
How can I resolve this ? 
Thanks
Solved!
Go to Solution.

Call Rogers back and ask (demand politely ) that  your issue be escalated to the RIM tech support level, for free. They will do that. There is no reason for you to pay for per incident support.
Rogers would not give you any reason for the Suspension?
What was suspended, your Rogers account, your PIN, your what?
1. If any post helps you please click the below the post(s) that helped you.
2. Please resolve your thread by marking the post "Solution?" which solved it for you!
3. Install free BlackBerry Protect today for backups of contacts and data.
4. Guide to Unlocking your BlackBerry & Unlock Codes
Join our BBM Channels (Beta)
BlackBerry Support Forums Channel
PIN: C0001B7B4   Display/Scan Bar Code
Knowledge Base Updates
PIN: C0005A9AA   Display/Scan Bar Code

Similar Messages

  • Table creation and getting  invalid identifier

    Thank you so much Ed (and all who replied) to my previious post !!!!, You are all being extremely helpful,
    I actually have another issue... SHould I repost a new thread or continue on this one?
    Here is my issue.
    create table DonationEvent
    ( "EventID" NUMBER(1,1) Not Null,
    "EventNumber" NUMBER(1,1) Not Null,
    "Type" Char(30) Not Null,
    "OrganizerName" Char(30) Not Null,
    "Location" Char(30) Not Null,
    "Date" NUMBER(10,1) Not Null,
    "Duration" Char(30) Null,
    "DonationTotal" NUMBER(10,1) Not Null,
    Primary Key (EventID),
    Getting ORA-00904: : invalid identifier
    Also I am using Express Edition 10g, how can I get a context view to see the line where error is occuring?

    user8776250 wrote:
    Thank you so much Ed (and all who replied) to my previious post !!!!, You are all being extremely helpful,
    I actually have another issue... SHould I repost a new thread or continue on this one?
    Here is my issue.
    create table DonationEvent
    ( "EventID" NUMBER(1,1) Not Null,
    "EventNumber" NUMBER(1,1) Not Null,
    "Type" Char(30) Not Null,
    "OrganizerName" Char(30) Not Null,
    "Location" Char(30) Not Null,
    "Date" NUMBER(10,1) Not Null,
    "Duration" Char(30) Null,
    "DonationTotal" NUMBER(10,1) Not Null,
    Primary Key (EventID),
    Getting ORA-00904: : invalid identifier
    Also I am using Express Edition 10g, how can I get a context view to see the line where error is occuring?Does Express edition have sqlplus?
    SQL> set echo on
    SQL> @doit1
    SQL> create table DonationEvent
      2  ( EventID NUMBER(1,1) Not Null,
      3  EventNumber NUMBER(1,1) Not Null,
      4  Type Char(30) Not Null,
      5  OrganizerName Char(30) Not Null,
      6  Location Char(30) Not Null,
      7  Date NUMBER(10,1) Not Null,
      8  Duration Char(30) Null,
      9  DonationTotal NUMBER(10,1) Not Null,
    10  Primary Key (EventID),
    11  );
    Date NUMBER(10,1) Not Null,
    ERROR at line 7:
    ORA-00904: : invalid identifier
    SQL>And as SB said,
    1) In oracle you really, really, REALLY don't want mixed case object (column, table, etc) names. Lose the double quotes.
    2) don't use reserved words (like 'date') as object names.
    also
    3) there's no good reason to use CHAR instead of VARCHAR2
    4) If you want a date (indicated by your badly named column 'date', make the datatype DATE, not number
    5) you need to look at how your NUMBER columns are defined and ask yourself if that's what you really want. NUMBER(1,1) means one digit, with one digit in the decimal location. NUMBER(10,1) means a total of 10 digits, with one of them in the decimal location
    SQL> create table DonationEvent
      2  ( EventID NUMBER(1,1) Not Null primary key,
      3    DonationTotal NUMBER(10,1) Not Null
      4  );
    Table created.
    SQL> --
    SQL> insert into donationevent values (1.2, 1234567891);
    insert into donationevent values (1.2, 1234567891)
    ERROR at line 1:
    ORA-01438: value larger than specified precision allowed for this column
    SQL> insert into donationevent values ( .2, 1234567891);
    insert into donationevent values ( .2, 1234567891)
    ERROR at line 1:
    ORA-01438: value larger than specified precision allowed for this column
    SQL> insert into donationevent values ( .2, 123456789.1);
    1 row created.
    SQL> insert into donationevent values ( .3, 12345678.9);
    1 row created.
    SQL> --
    SQL> commit;
    Commit complete.
    SQL> --
    SQL> select * from donationevent;
       EVENTID DONATIONTOTAL
            .2     123456789
            .3    12345678.9
    2 rows selected.
    SQL>

  • Invalid identifier when linking more than one data sets in a data model

    Hi
    I have about the following Data Model:
    G_1
    - MANAGER
    - MANAGER_KEY
    G_2
    - USER_LOGIN_DB1
    - MANAGER_KEY_1
    G_3
    - USER_LOGIN_DB2
    - MANAGER_KEY_2
    G_4
    - USER_LOGIN_DB3
    - MANAGER_KEY_3
    Now I link MANAGER_KEY to each MANAGER_KEY_x. When I try to generate the XML, the following error occurs:
    [2011-05-17T18:11:27.384+02:00] [bi_server1] [WARNING] [] [oracle.xdo] [tid: 11] [userId: <anonymous>] [ecid: 0000IzyiUX917ib5HJH7if1Docwn0000HL,0] [APP: bipublisher#11.1.1.3.0] java.sql.SQLSyntaxErrorException: ORA-00904: "MANAGER_KEY_2": invalid identifier[[
         at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:95)
         at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:135)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:210)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:473)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:423)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1095)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:205)
         at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:868)
         at oracle.jdbc.driver.T4CPreparedStatement.executeMaybeDescribe(T4CPreparedStatement.java:952)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1335)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3568)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3620)
         at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1667)
         at oracle.xdo.dataengine.XMLPGEN.processQuery(XMLPGEN.java:1472)
         at oracle.xdo.dataengine.XMLPGEN.processSQLDataSource(XMLPGEN.java:407)
         at oracle.xdo.dataengine.XMLPGEN.writeData(XMLPGEN.java:343)
         at oracle.xdo.dataengine.XMLPGEN.writeGroup(XMLPGEN.java:817)
         at oracle.xdo.dataengine.XMLPGEN.writeGroup(XMLPGEN.java:837)
         at oracle.xdo.dataengine.XMLPGEN.processGroup(XMLPGEN.java:779)
         at oracle.xdo.dataengine.XMLPGEN.processSQLDataSource(XMLPGEN.java:441)
         at oracle.xdo.dataengine.XMLPGEN.writeData(XMLPGEN.java:343)
         at oracle.xdo.dataengine.XMLPGEN.writeGroupStructure(XMLPGEN.java:282)
         at oracle.xdo.dataengine.XMLPGEN.writeXMLDataStructure(XMLPGEN.java:214)
         at oracle.xdo.dataengine.XMLPGEN.processDataSet(XMLPGEN.java:1390)
         at oracle.xdo.dataengine.XMLPGEN.processMergedDataSet(XMLPGEN.java:1203)
         at oracle.xdo.dataengine.DataProcessor.processData(DataProcessor.java:365)
         at oracle.xdo.servlet.dataengine.DataProcessor.processData(DataProcessor.java:402)
         at oracle.xdo.servlet.dataengine.DataProcessor.processData(DataProcessor.java:389)
         at oracle.xdo.online.data.ClassicDataProcessor.process(ClassicDataProcessor.java:157)
         at oracle.xdo.servlet.ReportModelContextImpl.getReportXMLData(ReportModelContextImpl.java:217)
         at oracle.xdo.servlet.CoreProcessor.process(CoreProcessor.java:301)
         at oracle.xdo.servlet.CoreProcessor.generateDocument(CoreProcessor.java:87)
         at oracle.xdo.servlet.ReportImpl.renderBodyHTTP(ReportImpl.java:1038)
         at oracle.xdo.servlet.ReportImpl.renderReportBodyHTTP(ReportImpl.java:603)
         at oracle.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:440)
         at oracle.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:419)
         at oracle.xdo.servlet.XDOServlet.doGet(XDOServlet.java:253)
         at oracle.xdo.servlet.XDOServlet.doPost(XDOServlet.java:276)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.xdo.servlet.metadata.track.MostRecentFilter.doFilter(MostRecentFilter.java:64)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.xdo.servlet.security.SecurityFilter.doFilter(SecurityFilter.java:116)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.xdo.servlet.init.InitCheckingFilter.doFilter(InitCheckingFilter.java:63)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:143)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    [2011-05-17T18:11:27.384+02:00] [bi_server1] [NOTIFICATION] [] [oracle.xdo] [tid: 11] [userId: <anonymous>] [ecid: 0000IzyiUX917ib5HJH7if1Docwn0000HL,0] [APP: bipublisher#11.1.1.3.0] Data Generation Completed...
    When I remove the Link to MANAGER_KEY_2, the same error occurs, except that the "invalid identifier" is MANAGER_KEY_3. If I remove the Link to MANAGER_KEY_3 as well, no error occurs and :
    1. the G_1 node contains n G_2 nodes
    2. the G_1 node has G_3 and G_4 siblings
    Does anyone know why this is? Thanks in advance.
    Cheers,
    Andreas

    I solved the problem. I don't know why, but BI Publisher seems to have trouble generating the XML when a column uses an alias (the columns MANAGER_KEY_x are columns that are built using NVL(... , ...) AS MANAGER_KEY_x) . I surrounded the query by another select to avoid using aliases in the field list, then it worked.
    Cheers
    Andreas

  • Java.sql.SQLSyntaxErrorException: ORA-00904: "GROUPID": invalid identifier

    I have this Oracle table:
    CREATE TABLE USERGROUPS(
      GROUPID INTEGER NOT NULL,
      GROUPNAME VARCHAR2(40 ),
      GROUPSTATUS VARCHAR2(30 ),
      DATEGROUPADDED DATE,
      DATEGROUPLOCKED DATE,
      GROUPEXPIREDATE DATE,
      DESCRIPTION CLOB
    /I tried to run this SQL query:
    SELECT c.*
    FROM
      (SELECT b.*,
        rownum rn
      FROM
        (SELECT a.* FROM USERGROUPS a ORDER BY GROUPID ASC
        ) b
      WHERE rownum <= 5
      ) c
    WHERE rn > 10I get this error message in SQL developer when I run it:
    ORA-00904: "GROUPID": invalid identifier
    00904. 00000 - "%s: invalid identifier"
    *Cause:   
    *Action:
    Error at Line: 5 Column: 25
    I also tested this SQL query:
    SELECT GROUPID FROM USERGROUPS I get this error:
    ORA-00904: "GROUPID": invalid identifier
    00904. 00000 - "%s: invalid identifier"
    *Cause:   
    *Action:
    Error at Line: 1 Column: 7
    Can you help me to fix the problem?

    Are you sure the create table statement executed successfully (with no error)?
    Perhaps you use an older version of the table where the column groupid did not exists.
    You can check the columns of your table with:
    select * from all_tab_columns
    where table_name='USERGROUPS'
      and owner='<schema-name>'
    order by column_id;Another reason could be, that exist two tables with the same name.
    You could check that with
    select *
    from all_tables
    where table_name ='USERGROUPS';hm

  • ORA-00904: "ATTRIBUTE20": invalid identifier (Human Resource)

    Hi
    Please anybody can tell me why the error (ORA-00904: "ATTRIBUTE20": invalid identifier) come. When I am trying to query in form "Human Resource Vision Enterprise > People > Salary Management"
    Regards
    Makshud

    Hi Makshud,
    In addition to above information, you can refer the following doc for the generic reason of this error,
    [OERR: ORA-904 %s: invalid identifier / invalid column name|https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=18500.1]
    This could be the reason for some invalid field entry as ORA-904 coming please verify.
    This is just for the information of ORA - 904, reason can only me verified after you provide the information asked by Hussein.
    Thanks,
    Anchorage :)

  • Invalid Identified

    Hi All
    I try to convert my query  by using emp table.
    Query
    SELECT empno,ename,JOB,
                        (SELECT (CASE WHEN sal>3000 THEN 999
                                ELSE sal
                         end ) filteredsal
                         FROM
                         SELECT sal
                         FROM emp inner_emp
                         WHERE inner_emp.empno=outer_emp.empno
                          )) sss
    FROM emp outer_emp;
    I'm getting error message
    Error Message
    ORA-00904: "OUTER_EMP"."EMPNO": invalid identifier
    00904. 00000 -  "%s: invalid identifier"
    *Cause:   
    *Action:
    Error at Line: 9 Column: 44
    Please help me out. I know outer_emp.empno is out of scope but how come I fix this issue...

    Hi, Shu,
    979596 wrote:
    ... Now my question is that is there any other way to do this query or the query that I wrote is the only possible way. ...
    There are always different ways to get the same results.  For a few very simple problems, you might be able to say that a given query is the best way, but for almost all real problems, there are multiple good ways to get the same results.
    You still haven't explained exactly what you want to do, or even what data you're using.  Is your emp table anything like scott.emp?  When you have mutliple rows with the same sal (e.g., WARD and MARTIN both have sal=1250) the query you posted gives indeterminate results.  (That is, it could say WARD has sss=1100 and MARTIN has sss=1250, but then again it could say WARD has sss=1250 and MARTIN has sss=1100.)  Is that really what you want?
    Here's one way to re-write your query:
    SELECT    empno, ename, job
    ,         LAG ( CASE
                        WHEN  sal > 2000
                        THEN  999
                        ELSE  sal
                    END
                  , 1
                  , 0
                  ) OVER (ORDER BY sal) AS sss
    ,         sal            -- For debugging only
    FROM      emp
    ORDER BY  sal            -- For debugging only
    (I added 2 lines just to help see I was getting the right results.  You can remove them if you want.)
    Notice that this gets around the problem of correlating to level N-2 by having everything on the same level, so there's no need to correlate at all.
    Another reasonable way to get the same results is:
    WITH    got_filteredsal       AS
        SELECT  empno, ename, job, sal
        ,       CASE
                    WHEN  sal > 2000
                    THEN  999
                    ELSE  sal
                END      AS filteredsal
        FROM    scott.emp
    SELECT    empno, ename, job
    ,         LAG (filteredsal, 1, 0) OVER (ORDER BY sal) AS sss
    ,         sal       -- For debugging only
    FROM      got_filteredsal
    ORDER BY  sal       -- For debugging only
    Again, there's no problem about correlating to level N-2, because there are only 2 levels, and they're not correlated anyway (that is, the sub-query doesn't need any data from the parent query).

  • ORA-00904: "SPN": invalid identifier

    Team
    I am caught in a situation and I am reaching out for support. I am importing the scripts on datamover and I am receiving this error:
    File: Data MoverSQL error. Stmt #: 0 Error Position: 2293 Return: 904 - ORA-00904: "SPN": invalid identifier
    Failed SQL stmt:INSERT INTO PS_INSTALLATION (COMPANY, MIN_STD_HRS, MAX_STD_HRS, EMPLID_LENGTH, STD_HRS_DEFAULT, STD_HRS_FREQUENCY, TEMP_SSN_MASK, COMMIT_AFTER, POSITION_MGMT, COUNTRY, COMP_FREQUENCY, EMPLID_LAST_EMPL, NON_EMPLOYEE_LAST, DEMAND_ID_LAST, POSN_NBR_LAST, GRIEVANCE_NBR_LAST, INCIDENT_NBR_LAST, CLAIM_NBR_LAST, FILE_CREATE_LAST, ROE_NBR_LAST, CAN_CMA, CAN_IND_SECTOR, MULTI_STEP_GRADE, FSA_CLAIMS, BENEFIT_ADMINISTRN, START_EVENT_DT, EXCHNG_TO_CURRENCY, EXCHNG_TO_RT_TYPE, HR, AM, AP, AR, GL, BD, PC, PO, INV, BI, OM, PUBLIC_SECTOR, RETROPAY_SEQ_LAST, RETRODED_SEQ_LAST, RETRO_DEDUCTIONS, TL, AUTO_EE_TAX, SAME_ST_LCL_RSDNCE, FMLA_ADMINISTRN, BAL_ID_FOR_CAL_YR, MAX_ROWS_SCROLL, PA, CAR_LAST, BEN_BILLING, COBRA_ADMINISTRN, LAST_TL_CONTRCTR, ORGCHART, COBRA_EMPLID_LAST, FSA_CLAIM_NBR_LAST, FSA_CRY_CLAIM_LAST, US, CAN, GER, FRA, UK, JPN, BEL, NLD, ESP, MEX, AUS, MYS, NZL, SGP, HKG, INSTALLED_PAY_GBL, IND, BRA, CHN, THA, INSTALLED_PAY_NA, INSTALLED_PAY_INT, USE_POINTS_SW, USE_RTCD_GROUP_SW, ROWSECCLASS, ILL_NBR_LAST_GER, FED, FP_FLAG, GVT_PAY_BASIS, ACCT_CD_LAST, CPS_TRANS_ID_LAST, CHE, ITA, ALLW_CONC_CALCCONF, PIN_NUM_LAST, GP_CST_INSTALL_IND, AP_INVNO_PREFIX, AP_INVNO_LAST, ST, ILL_NBR_LAST_NLD, ADJ_TL_FINAL_CHK, ADJ_TL_ONL_CHK, ADJ_TL_REV_ADJ, REFRSH_TL_JOB_CHG, REFRSH_TL_PRECALC, PSEBENEFITS, PSECOMP, PSEPAY, PSEPROFILE, PSERECRUIT, CCU, PSEA, INSTALLED_GP_AUS, INSTALLED_GP_BRA, INSTALLED_GP_CAN, INSTALLED_GP_CHE, INSTALLED_GP_CHN, INSTALLED_GP_DEU, INSTALLED_GP_ESP, INSTALLED_GP_FRA, INSTALLED_GP_HKG, INSTALLED_GP_IND, INSTALLED_GP_ITA, INSTALLED_GP_JPN, INSTALLED_GP_MEX, INSTALLED_GP_MYS, INSTALLED_GP_NLD, INSTALLED_GP_NZL, INSTALLED_GP_SGP, INSTALLED_GP_THA, INSTALLED_GP_UK, INSTALLED_GP_USA, PSECOMP_MGR, PSEPROFILE_MGR, PSERECRUIT_MGR, EPW, FO_PBM, AUTO_JOB_END, AUTO_JOB_SUSPEND, TEMP_ASSGN_ID_LAST, EHC, EPG, EPU, APS_AUS, DI, RP, INSTALLED_GP_ARG, INSTALLED_GP_IRL, INSTALLED_GP_TWN, TL_MOBILE, PSEPERF_MANAGEMENT, AA_ENABLED_JPN, INSTALLED_PAY_PPS, AV, SA, SG, HGA, ELM, PS_GL_VERSION, ADP, RSRW, CSS, HMCF_VALID_CACHE, HMCF_CACHE_RETAIN, HMCF_EIP_LIMIT, LAST_OSHA_CASE_NBR, GVT_NFC_INDICATOR, MILITARY, BEN_DED_CLS_ORDER, TBH_SEQ_LAST, ENC_TRIGGER, LAST_SP_ID_ASSIGN, UPD_INCUMB_LMT, INSTALLED_OWS, OWS_SEQ_LAST, SAIP, HP_ENFORCE_RTBC, HP_KK_BUDGET_PROC, ARG, TMOD, SPN) VALUES (:1, :2, :3, :4, :5, :6, :7, :8, :9, :10, :11, :12, :13, :14, :15, :16, :17, :18, :19, :20, :21, :22, :23, :24, :25, TO_DATE(:26,'YYYY-MM-DD'), :27, :28, :29, :30, :31, :32, :33, :34, :35, :36, :37, :38, :39, :40, :41, :42, :43, :44, :45, :46, :47, :48, :49, :50, :51, :52, :53, :54, :55, :56, :57, :58, :59, :60, :61, :62, :63, :64, :65, :66, :67, :68, :69, :70, :71, :72, :73, :74, :75, :76, :77, :78, :79, :80, :81, :82, :83, :84, :85, :86, :87, :88, :89, :90, :91, :92, :93, :94, :95, :96, :97, :98, :99, :100, :101, :102, :103, :104, :105, :106, :107, :108, :109, :110, :111, :112, :113, :114, :115, :116, :117, :118, :119, :120, :121, :122, :123, :124, :125, :126, :127, :128, :129, :130, :131, :132, :133, :134, :135, :136, :137, :138, :139, :140, :141, :142, :143, :144, :145, :146, :147, :148, :149, :150, :151, :152, :153, :154, :155, :156, :157, :158, :159, :160, :161, :162, :163, :164, :165, :166, :167, :168, :169, :170, :171, :172, :173, :174, :175, :176, :177, :178, :179)
    Any idea why? In case you need to know, I am running PT8.50 on Oracle database and HRMS 9.1. Be Blessed

    Thank you guys both for your help. To answer your questions Nicolas, the database was created through Oracle's database configuration, so it wasn't manual. It hasn't ran successful, that is what I am trying to tell you. When I run the scripts through data mover, when it gets that error, data mover stops working b/c it has failed and yes I have ran all the required scripts, but I did run the given command and got 20 rows selected:
    PS= 1
    MDSYS= 49
    TSMSYS=1
    DMSYS=2
    OUTLN=3
    CTXSYS=37
    OLAPSYS=126
    SYSADM=11625
    HR=7
    EXFSYS=44
    SCOTT=4
    SH=17
    DBSNMP=21
    ORDSYS=4
    SYSMAN=337
    OE=12
    PM=2
    XDB=11
    IX=15
    WMSYS=40
    To answer your question soundappan. First off thank you again for responding. Second, I am fully aware of that I need to run the required scripts, which have been done (as mentioned earlier). Thank you for that other piece of advice regarding starting from the failed table. I knew it before but didn't thimk about using that function, but now I will because it is too long of a process to start fresh each time, but since it is a DMO database, it is difficult to know where to start from because there are two.
    Here is an interesting fact, according to the installation guide, to properly install a DMO database, both the SYS and the DMO database options must be selected. Taking that fact into consideration, I get this error now: Be Blessed
    File: Data MoverSQL error. Stmt #: 0 Error Position: 0 Return: 805 - ORA-00001: unique constraint (SYSADM.PS_ABBR_TYPE_TBL) violated
    Failed SQL stmt:INSERT INTO PS_ABBR_TYPE_TBL (BN_ANNL_BENBASE_CD, EFFDT, EFF_STATUS, DESCRSHORT, DESCR) VALUES (:1, TO_DATE(:2,'YYYY-MM-DD'), :3, :4, :5)

  • PL/SQL: ORA-00904: invalid identifier (DG4ODBC 11.2.0.2 & MySQL)

    I have a PL/SQL script processing information between Oracle database and MySQL database. My script ran perfectly with DG4ODBC 11.1.0.7. Then we upgraded Oracle to 10.2.0 and DG4ODBC 11.2.0.2. Now if I run my script from Solaris command line like ./myscript.shl, I get the following errors:
    PL/SQL: ORA-00904: "cmswhit_moodle1"."mdl_grade_grades"."finalgrade": invalid identifier
    PL/SQL: ORA-00904: "cmswhit_moodle1"."mdl_question_states"."attempt": invalid identifier
    The strange thing is if I run the same query by cut and paste into sqlplus from command line, the query works perfectly without any problems.
    What is the cause of this problem?
    Any help would be greatly appreciated.
    Jeffrey

    Hi Klaus,
    The problem was solved after I updated MySQL ODBC to a new version from 5.1.8 to 5.1.13.
    Summary of the problem and its solution:
    The Problem: It appears that dg4odbc 11.2.0.2 requires a newer version of MyODBC. Previously I used MyODBC 5.1.8 which ran into problems with dg4odbc 11.20.0.2.
    The Solution: After I updated MyODBC to 5.1.13, my PL/SQL scripts all work.
    I need to point out that with MyODBC 5.1.8, I can run queries and updates from SQL*Plus console, but now PL/SQL scripts.
    I'll close this thread.
    Once again, thank you and happy holidays.
    Jeffrey

  • Discoverer report :ORA -00904 Invalid Identifier

    Hi ,
    we are using an apps mode EUL (version4i) ,
    in the business area "Account Receivables"--->Customer Transaction Lines Folder,
    when we pull up any item from this folder to create a report, it shows a
    "ORA-00904 Invalid Identifier " error
    how to fix it , whether the Item might be Deleted in view definition of this folder,
    just a refresh of the folder is enough ?
    thanks in advance

    Hi,
    Refreshing the folder should be your first step.
    Rod West

  • Report parameters being passed in URL - invalid identifier error

    Hi
    Id anyone aware of any format in which we should be passing values in the url to the report deployed on the server?
    A parameter that takes in the format 'e123','e234' - example for emp_id parameter.
    If we pass in this form, even a single value as 'e123' in the url to run the report -
    The value e123 is taken in single quotes and it displays the error
    REP-300: "e123": invalid identifier
    That is, it displays the error as if the string was entered in double quotes.

    Hi, Aaron.
    I tried what you said, and my code wouldn't parse correctly. Let me show you the whole module of PL/SQL that I'm dealing with here. I did not write this. This is something I'm maintaining and updating. The part that chokes is near the bottom.
    declare
    l_sql varchar2(4000) := 'select user_name,total from (select user_name,count(*) total from eba_ver2_cust_activity ' ;
    begin
    if :P23_START_DATE is not null and :P23_END_DATE is not null then
    l_sql := l_sql || ' where ACTIVITY_DATE between ''' || to_char(to_date(:P23_START_DATE,'dd-mon-yyyy'),'dd-mon-yyyy')
    || ''' and ' || '''' || to_char(to_date(:P23_END_DATE,'dd-mon-yyyy') ,'dd-mon-yyyy') || '''' ;
    elsif :P23_START_DATE is not null then
    l_sql := l_sql || ' where ACTIVITY_DATE >= ''' || to_char(to_date(:P23_START_DATE,'dd-mon-yyyy'),'dd-mon-yyyy') ||
    elsif :P23_END_DATE is not null then
    l_sql := l_sql || ' where ACTIVITY_DATE <= ''' || to_char(to_date(:P23_END_DATE,'dd-mon-yyyy'),'dd-mon-yyyy') || ''''
    end if;
    if :P23_ACTIVITY_TYPE != '%null%' and :P23_ACTIVITY_TYPE is not null then
    if :P23_START_DATE is not null or :P23_END_DATE is not null then
    l_sql := l_sql || ' and activity_type_id = ' || :P23_ACTIVITY_TYPE ;
    else
    l_sql := l_sql || ' where activity_type_id = ' || :P23_ACTIVITY_TYPE ;
    end if;
    end if;
    l_sql := l_sql || ' group by user_name )' ;
    return l_sql ;
    end ;
    I appreciate all the help. As for the job market for Apex programmers around here, I wouldn't know. I was a COBOL programmer for many years. I'm approaching retirement, and this will probably be my last IT job.
    Steve "the n00b" in Raleigh NC

  • Exception: java.sql.SQLException: ORA-00904: "SEQ_NAME": invalid identifier

    Hi everyone,
    we are facing the below issue when trying to schedule a BI report.
    Error Details:
    +oracle.apps.xdo.servlet.scheduler.ProcessingException: Exception [TOPLINK-4002] (Oracle TopLink - 11g Release 1 (11.1.1.0.0) (Build 080319)): oracle.toplink.exceptions.DatabaseException+
    Internal Exception: java.sql.SQLException: ORA-00904: "SEQ_NAME": invalid identifier
    Error Code: 904
    Call: UPDATE SEQUENCE SET SEQ_COUNT = SEQ_COUNT 50 WHERE SEQ_NAME = 'JOB_ID_SEQ'+
    Query: DataModifyQuery()
    +     at oracle.apps.xdo.servlet.scheduler.toplink.ToplinkDataHandler.insertJob(ToplinkDataHandler.java:830)+
    +     at oracle.apps.xdo.servlet.ui.scheduler.SchedulerServlet.scheduleJob(SchedulerServlet.java:1896)+
    +     at oracle.apps.xdo.servlet.ui.scheduler.SchedulerServlet.doPost(SchedulerServlet.java:293)+
    +     at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)+
    +     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)+
    +     at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)+
    +     at oracle.apps.xdo.servlet.security.SecurityFilter.doFilter(SecurityFilter.java:94)+
    +     at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)+
    +     at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)+
    +     at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)+
    +     at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)+
    +     at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)+
    +     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)+
    +     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)+
    +     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)+
    +     at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)+
    +     at java.lang.Thread.run(Thread.java:595)+
    +Caused by: Exception [TOPLINK-4002] (Oracle TopLink - 11g Release 1 (11.1.1.0.0) (Build 080319)): oracle.toplink.exceptions.DatabaseException+
    Internal Exception: java.sql.SQLException: ORA-00904: "SEQ_NAME": invalid identifier
    Error Code: 904
    Call: UPDATE SEQUENCE SET SEQ_COUNT = SEQ_COUNT 50 WHERE SEQ_NAME = 'JOB_ID_SEQ'+
    Query: DataModifyQuery()
    +     at oracle.toplink.exceptions.DatabaseException.sqlException(DatabaseException.java:296)+
    +     at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeDirectNoSelect(DatabaseAccessor.java:724)+
    +     at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeNoSelect(DatabaseAccessor.java:790)+
    +     at oracle.toplink.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:524)+
    +     at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:467)+
    +     at oracle.toplink.internal.sessions.AbstractSession.executeCall(AbstractSession.java:795)+
    +     at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:193)+
    +     at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:179)+
    +     at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.executeNoSelectCall(DatasourceCallQueryMechanism.java:222)+
    +     at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.executeNoSelect(DatasourceCallQueryMechanism.java:202)+
    +     at oracle.toplink.queryframework.DataModifyQuery.executeDatabaseQuery(DataModifyQuery.java:55)+
    +     at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:671)+
    +     at oracle.toplink.internal.sessions.AbstractSession.internalExecuteQuery(AbstractSession.java:2260)+
    +     at oracle.toplink.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1074)+
    +     at oracle.toplink.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1058)+
    +     at oracle.toplink.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1032)+
    +     at oracle.toplink.sequencing.QuerySequence.update(QuerySequence.java:319)+
    +     at oracle.toplink.sequencing.QuerySequence.updateAndSelectSequence(QuerySequence.java:258)+
    +     at oracle.toplink.sequencing.StandardSequence.getGeneratedVector(StandardSequence.java:62)+
    +     at oracle.toplink.sequencing.DefaultSequence.getGeneratedVector(DefaultSequence.java:144)+
    +     at oracle.toplink.sequencing.Sequence.getGeneratedVector(Sequence.java:256)+
    +     at oracle.toplink.internal.sequencing.SequencingManager$Preallocation_Transaction_NoAccessor_State.getNextValue(SequencingManager.java:444)+
    +     at oracle.toplink.internal.sequencing.SequencingManager.getNextValue(SequencingManager.java:873)+
    +     at oracle.toplink.internal.sequencing.ClientSessionSequencing.getNextValue(ClientSessionSequencing.java:75)+
    +     at oracle.toplink.internal.descriptors.ObjectBuilder.assignSequenceNumber(ObjectBuilder.java:234)+
    +     at oracle.toplink.internal.sessions.UnitOfWorkImpl.assignSequenceNumbers(UnitOfWorkImpl.java:419)+
    +     at oracle.toplink.internal.sessions.UnitOfWorkImpl.calculateChanges(UnitOfWorkImpl.java:497)+
    +     at oracle.toplink.internal.sessions.UnitOfWorkImpl.commitToDatabaseWithChangeSet(UnitOfWorkImpl.java:1407)+
    +     at oracle.toplink.internal.sessions.UnitOfWorkImpl.commitRootUnitOfWork(UnitOfWorkImpl.java:1167)+
    +     at oracle.toplink.internal.sessions.UnitOfWorkImpl.commit(UnitOfWorkImpl.java:939)+
    +     at oracle.apps.xdo.servlet.scheduler.toplink.ToplinkDataHandler.insertJob(ToplinkDataHandler.java:815)+
    +     ... 16 more+
    Caused by: java.sql.SQLException: ORA-00904: "SEQ_NAME": invalid identifier
    +     at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:138)+
    +     at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:316)+
    +     at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:282)+
    +     at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:639)+
    +     at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:113)+
    +     at oracle.jdbc.driver.T4CStatement.execute_for_rows(T4CStatement.java:561)+
    +     at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1161)+
    +     at oracle.jdbc.driver.OracleStatement.executeUpdate(OracleStatement.java:1585)+
    +     at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeDirectNoSelect(DatabaseAccessor.java:713)+
    +     ... 45 more+
    Found a thread related to this but there it was explained that the error was occuring when trying to notify regarding output through email. In our case, issue is occuring just during scheduling itslef.
    Also I haved checked the following schedular tables in my database.
    SQL> select table_name from all_tables where table_name like 'S_NQ%'
    +2 /+
    TABLE_NAME
    S_NQ_ERR_MSG
    S_NQ_INSTANCE
    S_NQ_JOB_PARAM
    S_NQ_JOB
    SQL> select SEQ_NAME.CURRVAL FROM DUAL;
    select SEQ_NAME.CURRVAL FROM DUAL
    *+
    ERROR at line 1:
    ORA-02289: sequence does not exist
    Please help me out in solving this as I have tried almost all possible solutions.
    Thanks,
    Sri Harsha.
    Edited by: user10545574 on Dec 20, 2009 10:24 PM

    Hello,
    In the delivery email configuration server page (under BI Publisher Admin Tab), the username / password to enter is the one defined on the email server itself. It is the user that will be user to send the emails when scedhuling a report.
    It may not be Administrator/ Administrator (not a user defined with OBI admin tool) but the username/password defined on the email server itself.
    Moreover, to properly configure the BI Publisher Scheduler, it is a prerequistes to create bipsched user on Oracle DB and install the schema tables in Oracle DB (by clicking on Install Schema button after defining database connection under Admin / Scheduler Configuration tab)
    From the error your are getting 'SEQ_NAME unknown..., it appears that the tables are not created'.
    Hope this helps and good luck
    Matthieu

  • Invalid identifier results from an sql statement in php

    hello there, i'm trying to access data from an oracle 11g database via oci and php 5.3.8.
    i'm getting the ORA-00904 (invalid identifier) error when executing the following statement:
    $stid = oci_parse($conn, 'select * from table1 where column1 = "XYZ"');
    when i do this:
    $searchstring = "XYZ";
    $stid = oci_parse($conn, 'select * from table1 where column1 = '.$searchstring.'');
    i'm getting this error:
    ORA-00933: SQL command not properly ended
    column1 is varchar2, the entries are either letters and numbers (never only numbers) or empty.
    when i do this:
    $stid = oci_parse($conn, 'select * from table1');
    i'm getting the data and there are entries in column1 with XYZ.
    has anyone an idea, what i do wrong?
    regards j

    The PHP forum for questions like this is at http://www.oracle.com/technetwork/forums/php/index.html
    You really need to be using a bind variable here. Otherwise you will likely suffer from poor DB performance, and also open yourself to SQL Injection security attacks. Try:
    $stid = oci_parse($conn, 'select * from table1 where column1 = :bv');
    oci_bind_by_name($stid, ":bv", $searchstring);Regarding quoting of your example try:
    $searchstring = "XYZ";
    echo  'select * from table1 where column1 = '.$searchstring.'';Then run that SQL in SQL*Plus and watch it fail. What you need is given with:
    echo  'select * from table1 where column1 = \''.$searchstring.'\'';See the bottom of p 126 of The Underground PHP and Oracle Manual
    Note that with the bind variable example you didn't need quotes around :bv.

  • Invalid identifier error in executing a ref cursr

    I am getting ORA00904: "MARKETING": invalid identifier ... and it's driving me crazy!!
    here's my sql code...
    StrTitle varchar2(500);
    TYPE RefCurCusts IS REF CURSOR;
    rec_ref_custs RefCurCusts;
    strCusts varchar2(500);
    StrTitle := 'MARKETING';
    OPEN rec_ref_custs FOR
    'Select distinct b.account_number, b.marketing_rep_name, c.customer_name, a.meter, a.mappole, a.feeder, b.last_or_corp_name, b.house_number, b.street_direction, b.street_name, b.street_suffix, max(odate) over (partition by b.account_number) last_called, n.message_type, c.list_name     
    From srs.current_outage_calls o, tlm.customer_electric b, srs.notification_list n, SRS.NOTIFIABLE_CUSTOMERS_VW c, srs.est_customer_outages a
    Where c.SERVICE_ADDR_NUMBER = b.SERVICE_ADDR_NUMBER And substr(b.meter_number, 2, 6) = a.meter and b.service_point_end_date is null and o.meter(+)=a.meter and n.list_name=c.list_name and c.list_name = '||StrTitle;
                   LOOP
                        FETCH rec_ref_custs INTO strCusts;
                        EXIT WHEN rec_ref_custs%NOTFOUND;
                             StrBodyHTML:= StrBodyHTML || ', ' || strCusts;
                   END LOOP;
    CLOSE rec_ref_custs;     
    please help!
    Thanks

    Fuse_5a wrote:
    I am taking the value of StrTitle (I changed the name of it to strList in the below code) from a different select statement ... therefore, strList will be changing based on the results of the first query.
    this code is for an automailer that will run every minute!!
    here's more of my code to better explain it ...
    Any suggestions?
    OPEN rec_ref_list FOR
    'Select
    distinct c.list_name     
    From
    srs.current_outage_calls o,
    tlm.customer_electric  b,
    srs.notification_list n,
    SRS.NOTIFIABLE_CUSTOMERS_VW c,
    srs.est_customer_outages a
    Where
    c.SERVICE_ADDR_NUMBER = b.SERVICE_ADDR_NUMBER
    And substr(b.meter_number, 2, 6) = a.meter
    and b.service_point_end_date is null
    and o.meter(+)=a.meter
    and n.list_name=c.list_name';
    LOOP
    FETCH rec_ref_list INTO *strList*;
    EXIT WHEN rec_ref_list%NOTFOUND;
         OPEN rec_ref_custs FOR
    'Select
    b.account_number,
    b.marketing_rep_name,
    c.customer_name, a.meter,
    a.mappole, a.feeder,
    b.last_or_corp_name,
    b.house_number,
    b.street_direction,
    b.street_name,
    b.street_suffix,
    max(odate) over (partition by b.account_number) last_called,
    n.message_type,
    c.list_name     
    From
    srs.current_outage_calls o,
    tlm.customer_electric  b,
    srs.notification_list n,
    SRS.NOTIFIABLE_CUSTOMERS_VW c,
    srs.est_customer_outages a
    Where
    c.SERVICE_ADDR_NUMBER = b.SERVICE_ADDR_NUMBER
    And substr(b.meter_number, 2, 6) = a.mete
    and b.service_point_end_date is null
    and o.meter(+)=a.meter
    and n.list_name=c.list_name
    and c.list_name = :1' using *strList*;
           LOOP
               FETCH rec_ref_custs INTO strCusts;
               EXIT WHEN rec_ref_custs%NOTFOUND;
                   StrBodyHTML:= StrBodyHTML || ', ' || strList || ', ' || strCusts;
           END LOOP;
    CLOSE rec_ref_custs;     
    END LOOP;
    CLOSE rec_ref_list;     
    You have a variable, nothing more. You DO NOT need dynamic SQL here, just trust me (then go read about it and learn why ... it will serve your career well to do some reading).
    You don't need 2 cursors here, for lack of not wanting to try to decipher this in it's entirety i took a simple hack and utilized an IN clause.
    for loop_var in
       Select
          b.account_number,
          b.marketing_rep_name,
          c.customer_name, a.meter,
          a.mappole, a.feeder,
          b.last_or_corp_name,
          b.house_number,
           b.street_direction,
          b.street_name,
          b.street_suffix,
          max(odate) over (partition by b.account_number) last_called,
          n.message_type,
          c.list_name     
       From
          srs.current_outage_calls o,
          tlm.customer_electric  b,
          srs.notification_list n,
          SRS.NOTIFIABLE_CUSTOMERS_VW c,
          srs.est_customer_outages a
       Where
        c.SERVICE_ADDR_NUMBER = b.SERVICE_ADDR_NUMBER
       And substr(b.meter_number, 2, 6) = a.mete
       and b.service_point_end_date is null
       and o.meter(+)=a.meter
       and n.list_name=c.list_name
       and c.list_name in
          Select
             c.list_name     
          From
          srs.current_outage_calls o,
          tlm.customer_electric  b,
          srs.notification_list n,
          SRS.NOTIFIABLE_CUSTOMERS_VW c,
          srs.est_customer_outages a
          Where
          c.SERVICE_ADDR_NUMBER = b.SERVICE_ADDR_NUMBER
          And substr(b.meter_number, 2, 6) = a.meter
          and b.service_point_end_date is null
          and o.meter(+)=a.meter
          and n.list_name=c.list_name
    LOOP
       StrBodyHTML:= StrBodyHTML || ', ' || loop_var.<pick_a_column_from_select_list_above>;
    END LOOP;No ref cursors, less complex and 1 single SQL query ... much cleaner and efficient.

  • Error ORA-00904  invalid identifier

    There are so many different employee rates colums in the employee table .
    e.g)
    emp_rate_1 column has all different salaries(10,20,30)
    emp_rate_2 column has all different salaries(20,30,40)
    If I do pick up one rate , it works fine as below
    select
         SUM(emp_rate_1) as emp_rate_1
                   from employee_t
    result $60
    but i have to summarize all different rate amount using loop. before looping method,
    I tried as simple like below
    declare
    V_emp_rate_1_ID number;
    begin
    V_emp_rate_1_ID :=1;
    select
         SUM(emp_rate_||trim(V_emp_rate_1_ID)) as emp_rate_1
                   from employee_t ;
    end;
    I have an error message;
    PL/SQL: ORA-00904: "emp_rate_": invalid identifier
    ORA-06550: line 5, column 1:
    PL/SQL: SQL Statement ignored
    06550. 00000 - "line %s, column %s:\n%s"
    *Cause:    Usually a PL/SQL compilation error.
    *Action:
    how can I put dynamic column into Sum() in the query?
    or would you give me your advice to solve the solution.

    Not clear whether you are trying to get two sums (one for each column) or one sum that totals both columns)
    select
    SUM(emp_rate_1) as emp_rate_1
    from employee_t
    result $60But you can do all three with one query
    select
    SUM(emp_rate_1) as emp_rate_1, sum(emp_rate_2) as emp_rate_2, sum (emp_rate_1 + emp_rate_2) as sum_both
    from employee_t

  • Dynamic SQL Issue ORA-00904:invalid identifier error

    Here is my SP
    create or replace procedure srini_ref_cursor_test(p_county_code IN VARCHAR2,
    p_ref_cur out PK_FR_TYPES.cursor_type) is
    query_str varchar2(5000);
    begin
    query_str := 'SELECT * FROM dw_county where county_name = :P ';
    open p_ref_cur for query_str USING p_county_code;
    insert into srini_query_str_test values (query_str);
    commit;
    end srini_ref_cursor_test;
    When I pass the p_county_code = Adams working find.
    create or replace procedure srini_ref_cursor_test(p_county_code IN VARCHAR2,
    p_ref_cur out PK_FR_TYPES.cursor_type) is
    query_str varchar2(5000);
    begin
    query_str := 'SELECT * FROM dw_county where county_name in ('||p_county_code||')';
    open p_ref_cur for query_str;
    insert into srini_query_str_test values (query_str);
    commit;
    end srini_ref_cursor_test;
    When I pass the p_county_code = Adams for above SP I got the following error
    ORA-00904: "ADAMS": invalid identifier error
    With out Bind variables how Can I pass the Char type values in Dynamic SQL ?
    I would like to pass multipule values to p_county_code like 'Adams','Ashley' etc
    How Can I do this ?
    Thank for great help.
    Srini

    How do I write the Dynamic SQL for
    SELECT * FROM DW_COUNTY WHERE COUNTY_NAME LIKE 'Ad%'
    The usual way...
    hr@ORA10G>
    hr@ORA10G> var str varchar2(1000);
    hr@ORA10G> var cr refcursor;
    hr@ORA10G>
    hr@ORA10G> exec :str := 'select * from employees where first_name like ''A%''';
    PL/SQL procedure successfully completed.
    hr@ORA10G> -- note the escape character for each single quote
    hr@ORA10G> print str
    STR
    select * from employees where first_name like 'A%'
    hr@ORA10G>
    hr@ORA10G> exec open :cr for :str;
    PL/SQL procedure successfully completed.
    hr@ORA10G> print cr
    EMPLOYEE_ID FIRST_NAME           LAST_NAME                 EMAIL                     PHONE_NUMBER      HIRE_DATE JOB_ID    SALARY COMMISSION_PCT MANAGER_ID DEPARTMENT_ID
            103 Alexander            Hunold                    AHUNOLD                   590.423.4567         03-JAN-90 IT_PROG          9000                       102            60
            115 Alexander            Khoo                      AKHOO                     515.127.4562         18-MAY-95 PU_CLERK         3100                       114            30
            121 Adam                 Fripp                     AFRIPP                    650.123.2234         10-APR-97 ST_MAN           8200                       100            50
            147 Alberto              Errazuriz                 AERRAZUR                  011.44.1344.429278   10-MAR-97 SA_MAN          12000             .3        100            80
            158 Allan                McEwen                    AMCEWEN                   011.44.1345.829268   01-AUG-96 SA_REP           9000            .35        146            80
            167 Amit                 Banda                     ABANDA                    011.44.1346.729268   21-APR-00 SA_REP           6200             .1        147            80
            175 Alyssa               Hutton                    AHUTTON                   011.44.1644.429266   19-MAR-97 SA_REP           8800            .25        149            80
            185 Alexis               Bull                      ABULL                     650.509.2876         20-FEB-97 SH_CLERK         4100                       121            50
            187 Anthony              Cabrio                    ACABRIO                   650.509.4876         07-FEB-99 SH_CLERK         3000                       121            50
            196 Alana                Walsh                     AWALSH                    650.507.9811         24-APR-98 SH_CLERK         3100                       124            50
    10 rows selected.
    hr@ORA10G>
    hr@ORA10G>pratz

Maybe you are looking for

  • Skillbuilders modal page - success message not closing in Internet Explorer

    Hello, I'm using Skillbuilders modal page plugin on Apex 4.1. The plugin works great in all browsers except in IE, where I'm unable to close the success message by clicking on the "x" in the upper right corner. I'll explain further. I have a report o

  • HP LaserJet CP1525nw makes terrible swealing noise when printing

    Product:  HP LaserJet CP1525nw OS:  Windows 7 Error Msg:  none The product makes a loud squealing noise when printing.  It also leaves streak marks on envelopes. Product was purchased Dec. 21, 2010, so is only a little over one year old, but is out o

  • Downloading pictures from a Nikon digital camera to an iPad

    Can I directly download pictures from my Nikon camera directly to my iPad?  If so how? Thanks

  • Maximize my Network

    Hey Everyone. I would like some advice from someone on how to maximize my network. I have Verizon Fios. I have there Modem/Wireless Router. As well as a time capsule and a airport express. I have the time capsule set to be its own wireless network co

  • Itunes 10.5 - no visualizers

    In Itunes 10.5 i can't choose any other visualizer than the standard and classic one (not even custom ones). I also cannot click the options menu item under the visualizer menu.