ORA-12705: invalid parameter or unknown NLS value specified error in PL/SQL

Everything works well, SQL * PLUS, shape and reports, but my PL/SQL Developer has stopped working.
It is throwing this error when I try to connect.

ORA-12705: invalid parameter or unknown NLS value specified error in PL/SQL developer


How to fix this help please.

First: most of the questions for Oracle products have a response depending on the version. In Oracle 11 g or 10g Oracle change the structure of their branch in the registry for example.

Secondly, it seems that the registry is a little messy.
Oracle for Windows identifies the part of the registry to use by reading the file
% ORACLE_HOME%\bin\oracle. Key

Probably with PL/SQL Developer, like PL/SQL Developer needs an Oracle customer, she will too.
Of course, if this key points to a branch with NLS_LANG value NA this will result in questions, because this is not a valid value.
%ORACLE_HOME%\Bin will usually be in your path

---------
Sybrand Bakker
Senior Oracle DBA

Tags: Database

Similar Questions

  • Merger with subquery causes ORA-38101 invalid column to INSERT the VALUES C

    What follows is a slightly shortened version of a SQL statement that causes the error.
              MERGE INTO applicant_matches m_table USING
              (
                   SELECT DISTINCT
                               s.student_id,
                               a.term_scope_id,
                               a.first_name,
                             a.last_name,
                             a.ssn_visa,
                             a.birth_date,
                             ...     
                         
              ) m_list ON
              (m_list.student_id =     m_table.student_id AND
                   m_list.first_name     =     m_table.first_name AND
                   m_list.last_name =     m_table.last_name AND
                   m_list.birth_date     =     m_table.birth_date AND
                   m_list.ssn_visa =     m_table.ssn_visa AND
                   m_list.term_scope_id =     m_table.term_scope_id)
    
              WHEN NOT MATCHED THEN
                     INSERT (m_table.student_id, m_table.term_scope_id, m_table.ssn_visa, m_table.first_name, m_table.last_name,
                           m_table.birth_date, m_table.ssn_match, m_table.dob_match, m_table.soundex_match, m_table.name_match, m_table.past_present)
                     VALUES
                        (m_list.student_id, m_list.term_scope_id, m_list.ssn_visa, m_list.first_name, 
                             m_list.last_name, m_list.birth_date, m_list.ssn_match, m_list.dob_match, m_list.soundex_match, 
                             m_list.name_match, 
    
    
                             (SELECT                    
                   'A'
                        FROM  term_scope ts
                             JOIN campus_term ct ON ts.campus_term_id=ct.campus_term_id
                             WHERE
                             ts.term_scope_id = 5  )
               
               )
               
    I've simplified the request a bit to see what combination of things are the cause of the problem, that is why she always inserts 'A' in m_list.past_present (a CHAR (1)) and always use 5 for the term_scope_id.

    On the SELECT subquery I get one
    ORA-38101 invalid column in the INSERT VALUES Clause: string "ts". "" term_scope_id ".

    However, if I leave the
    JOIN the ct campus_term ON ts.campus_term_id = ct.campus_term_id
    Then, the query works fine.

    Anyway, it must be insert 'A', so I can't imagine what that JOIN has to do with anything anyone. The term_scope_id is valid. It won't let you do a join in a subquery for a merge insert?

    BTW: I'm using Oracle Database 11 g Enterprise Edition Release 11.1.0.6.0 - Production

    Try using the old join syntax

    Select 'x '.
    from t1, t2
    where t1.col = t2.col
    and t2.other_col = using_set.other_col

  • ORA-12705: cannot access files of NLS data or invalid environment specified

    Friends,

    I installed content of instantclient-basic-win32 - 11.2.0.1.0.zip and instantclient-sqlplus-win32 - 11.2.0.1.0.zip in C:\instantclient_11_2 on my Windows XP and put C:\instantclient_11_2 in the PATH environment variable.

    I use the following sequence of commands to call SQL * more and also establish a remote database session.
    CD C:\instantclient_11_2
    sqlplus/nolog
    CONNECT Username@'hostname:portnumber/SERVICE_HANDLER/SID'

    However, I met ' ORA-12705: cannot access NLS data or invalid environment specified files "." Can someone help me with the resolution?

    Kind regards
    Raamu M S R K

    I think that this has been discussed in these forums before - use the search function to find the related discussions

    http://forums.Oracle.com/forums/search.jspa?threadID=&q=ora-12705&objid=F190&DateRange=all&userid=&NumResults=15&rankBy=10001

    This link can also help - http://tardate.blogspot.com/2004/07/oracle-instant-client-10102.html

    HTH
    Srini

  • [exec] ORA-12705: cannot access files of NLS data or invalid environment specified

    Hi all

    We have an app works ok on Windows XP, but if on Win7 it gets error:

    [exec] Caused by: java.sql.SQLException: ORA-00604: error occurred at repeat

    SIVE SQL level 1

    [exec] ORA-12705: cannot access NLS files or specific environment not valid

    fied

    Is this a problem of sqlnet client?

    Thank you very much

    zxy

    In the glasses of course

  • AutoConfig error: ORA-12705: cannot access NLS data or invalid environment specified files

    Hi, experts:

    When it is run on the database layer, obtained adautocfg.sh

    ====

    ....

    Executable: /ap10/immted/db/tech_st/11.2.0.3/bin/sqlplus

    SQL * more: Production of liberation 11.2.0.3.0 Sat Jun 28 23:30:17 2014

    Copyright (c) 1982, 2011, Oracle.  All rights reserved.

    Enter the value 1: enter the value 2: enter the value 3: ERROR:

    ORA-12705: cannot access files of NLS data or invalid environment specified

    =====

    We have 12.1.3, 11.2.03 and Linux. I've issued $unset NLS_LANG, set ORA_NLS10 = "' in the .env file." What should I check?

    In the $ORACLE_HOME/appsutil/contextfile.xml the following:

    "s_db_oranls" = "unix" OSD > /ap10/immted/db/tech_st/11.2.0.3/nls/data/9idata < / ORA_NLS >

    Thanks and greetings

    Now, I got the same error when doing $sqlplus / as sysdba. $sqlplus/nolog is fine.

    Hello

    AutoConfig was successful before?

    Are there any recent book.

    If you're upgrading from 11.2.0.3 or recently updgraded to 11.2.0.3 database, then course do perofmed you listed in article - 7 for creating data 9i of the below TechNote MOS.

    Interoperability note Oracle EBS R12 with Oracle Database 11 g 2 (11.2.0.3) (Doc ID 1585578.1)

    See also below the TechNote if is not for 11.2.0.3 but his relevant:

    Upgrade 9i to 10 g 2 fails with ORA-12709: error loading creates characters of the base set (Doc ID 732861.1)

    Thank you

    A H E E R X

  • ORA-12705 export NLS_LANG

    Database version: 10.2.0.4 EA
    OPERATING SYSTEM: AIX 6.1

    I want to put the NLS_LANG parameter to the level of the OS to run the database import. I get the error when I run sqlplus or impdp below.

    ORA-12705: cannot access files of NLS data or invalid environment specified

    The NLS parameters at the DB level are below. Could someone make me to know how to set the parameter.

    I tried in many ways, as below. But, without success.

    $export NLS_LANG =. UTF8
    $export NLS_LANG = AMERICAN_AMERICA. UTF8

    SQL> SELECT * from v$nls_parameters;
    
    PARAMETER                                                        VALUE
    ---------------------------------------------------------------- ----------------------------------------------------------------
    NLS_LANGUAGE                                                     AMERICAN
    NLS_TERRITORY                                                    AMERICA
    NLS_CURRENCY                                                     $
    NLS_ISO_CURRENCY                                                 AMERICA
    NLS_NUMERIC_CHARACTERS                                           .,
    NLS_CALENDAR                                                     GREGORIAN
    NLS_DATE_FORMAT                                                  DD-MON-RR
    NLS_DATE_LANGUAGE                                                AMERICAN
    NLS_CHARACTERSET                                                 UTF8
    NLS_SORT                                                         BINARY
    NLS_TIME_FORMAT                                                  HH.MI.SSXFF AM
    
    PARAMETER                                                        VALUE
    ---------------------------------------------------------------- ----------------------------------------------------------------
    NLS_TIMESTAMP_FORMAT                                             DD-MON-RR HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT                                               HH.MI.SSXFF AM TZR
    NLS_TIMESTAMP_TZ_FORMAT                                          DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_DUAL_CURRENCY                                                $
    NLS_NCHAR_CHARACTERSET                                           AL16UTF16
    NLS_COMP                                                         BINARY
    NLS_LENGTH_SEMANTICS                                             BYTE
    NLS_NCHAR_CONV_EXCP                                              FALSE

    Export NLS_LANG = AMERICAN_AMERICA. UTF8

    Concerning

  • RMAN error: ora-12705 while testing on the tape with EMC networker backup 7.63

    We failed with our script, rman with the following error. Version of the OS is redhat linux 5. DB version is 11.2.0.3

    Recovery Manager: release 11.2.0.3.0 - Production on Wed Sep 22:50:48 5 2012
    Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.

    RMAN > Connect target *;
    2 > #rman target / < < EOF
    3 > #rman target;
    4 > run {}
    5 > configure the parallelism of peripheral band type 4;
    6 > ALLOCATE CHANNEL ch1 TYPE 'SBT_TAPE ';
    7 > allocate Ribbon type channel ch2.
    8 > allocate Ribbon type channel ch3;
    9 > assign the channel type Ribbon ch4;
    10 > allocate Ribbon type channel ch5.
    11 > configure controlfile autobackup on;
    12 > configure the type of backup device type Ribbon backupset compressed;
    13 > INCREMENTAL LEVEL 0 BACKUP copy the TAG "fullcopy_prd" DATABASE
    14 > CHANNEL ch1.
    15 > CHANNEL ch2.
    16 > CHANNEL ch3;
    17 > CHANNEL ch4;
    18 > CHANNEL ch5.
    {19 >}
    20 > {EXECUTION
    21 > ALLOCATE CHANNEL ch1 TYPE 'SBT_TAPE ';
    22 > SAVE that copy ALL ARCHIVELOG;
    23 > SAVE that copy CURRENT CONTROLFILE;
    24 > CHANNEL ch1.
    25 > crosscheck backup;
    26 > delete NOPROMPT obsolete FORCE.
    {27 >}
    28 > "exit";
    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    ORA-12705: cannot access files of NLS data or invalid environment specified

    Complete recovery manager.

    The seller of bands is EMC networker 763. There are other other aix hosts running prod db supported by the same provider, we tried their script on the linux host, we got an exact same error.

    I wonder if I should setup NLS enviornment. but the emc network operates by setting variables in a config file in / etc /. He did information non-specific nls.

    Does he know this seller and this problem, please help me solve the problem.

    Thank you in advance.

    982335 wrote:
    RMAN-06583: at least 1 channel of TYPE DISK must be distributed to use the COPY AS option

    Since I was on backup as copy. So backup copy won't work on the Strip?

    Hello

    No, you can't backup as copy directly to tape.

    Don't know if it works but try this

    1. first copy the disk backup
    2. then backup datafilecopy all tape

    See you soon

  • Invalid number for the target value

    Hello

    I am trying to create a dynamic action for which, under the SQL, I used the following code

    Select to_char(:P3_COMPLEX_INV_DATE,'MON') where DOUBLE: P3_COMPLEX_INV_DATE is a date in the format DD-MM-AA picker.

    My requirement is to extract the part the user date month has chosen.

    I get the following error

    Ajax call back Server error ORA-01722: invalid number to set the value.

    Can someone help me solve the problem?

    then use the following syntax

    Select to_char (to_date(:P3_COMPLEX_INV_DATE,'DD-MON-YY'), 'MY') FROM DUAL

    Also check if the DA is running

    Let me know if that answers your query in the active thread

  • SQL * Loader - rejected records - error on table ORA-01722: invalid number

    Get the following errors:

    Please tell me where I'm wrong?
    The log file and extracts the data file with the control file is attached.
    Also guide me please how I can download 4900 files at once?

    -------------------------------------
    SQL * Loader: release 11.1.0.7.0 - Production on Fri 14 Oct 03:06:06 2011

    Copyright (c) 1982, 2007, Oracle. All rights reserved.

    Control file: sample.ctl
    Data file: Cities.csv
    Bad leadership: Cities.bad
    Discard File: none is specified

    (Allow all releases)

    Number of loading: ALL
    Number of jump: 0
    Authorized errors: 50
    Link table: 64 lines, maximum of 256000 bytes
    Continuation of the debate: none is specified
    Path used: classics

    Table CITY, loaded from every logical record.
    Insert the option in effect for this table: INSERT

    Column Position Len term Encl. Datatype name
    ------------------------------ ---------- ----- ---- ---- ---------------------
    FIRST ID *, CHARACTER
    35. ACCORDING TO NAME, ' CHARACTER
    COUNTRYCODE 3, ' CHARACTER
    THE NEXT POPULATION * CHARACTER WHT

    Sheet 1: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Sheet 2: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Sheet 3: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Folder 4: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Sheet 5: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Sheet 6: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Sheet 7: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Sheet 8: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    File 9: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Case 10: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Factsheet 11: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Sheet 12: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    File 13: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Fact sheet 14: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Fact sheet 15: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Sheet 16: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    File 17: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Sheet 18: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    File 19: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Sheet 20: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Sheet 21: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Account 22: rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Sheet 23: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Record number of 24: rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Sheet 25: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Fact sheet 26: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Fact sheet 27: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Record 28: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Record 29: rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Record 30: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Record of 31: rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    • Statement 32: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Record 33: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Page 34: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Record 35: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Record 36: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Record 37: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Record 38: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Sheet 39: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Record 40: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Sheet 41: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Page 42: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Record 43: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Sheet 44: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Record 45: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    • Statement 46: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Record 47: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Record 48: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Record 49: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Page 50: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Record 51: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number


    NUMBER of MAXIMUM ERRORS EXCEEDED - above the statistics reflect partial performance.

    CITY table:
    0 rows successfully loaded.
    51 lines not filled due to data errors.
    0 rows not loading because all WHEN clauses were failed.
    0 rows not populated because all fields are null.


    The space allocated to bind table: 35840 bytes (64 lines)
    Bytes of read buffer: 1048576

    Total logical records ignored: 0
    Total logical records read: 64
    Total rejected logical records: 51
    Total logical records ignored: 0

    Run started on Fri 14 Oct 03:06:06 2011
    Run finished Fri Oct 14 03:06:12 2011

    Time was: 00:00:06.18
    Time processor was: 00:00:00.03



    ----------------------------------------------------------------------

    my control file (sample.ctl):

    Load data infile 'Cities.csv '.
    in the town of table
    fields completed by «,»
    (external id integer,
    char (35) name box by ' ', '
    CountryCode tank (3) box by ' ', '
    external population integer terminated by '\n '.
    )

    my data (Cities.csv) file (it contains 4900 documents, but I show here just 4 records for ease)

    3830, "Virginia Beach", "USA", 425257
    3831, 'Atlanta', 'USA', 416474
    3832, "Sacramento", "USA", 407018
    3833, 'Oakland', 'USA', 399484


    Thanks in advance!

    Watch when I have a little change your database as follows

    1,'Kabul','AFG',1780000
    2,'Qandahar','AFG','237500'
    3,'Herat','AFG','186800'  
    

    I got the same error (last 2 rows rejected for the same number invalid error)

    mhouri > select * from cities;
    
            ID NAME                                COU POPULATION
    ---------- ----------------------------------- --- ----------
             1 Kabul                               AFG    1780000
    
    SQL*Loader: Release 10.2.0.3.0 - Production on Fri Oct 14 10:38:06 2011
    
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    
    Control File:   cities.ctl
    Data File:      cities.dat
      Bad File:     cities.bad
      Discard File:  none specified
    
     (Allow all discards)
    
    Number to load: ALL
    Number to skip: 0
    Errors allowed: 50
    Bind array:     64 rows, maximum of 256000 bytes
    Continuation:    none specified
    Path used:      Conventional
    
    Table CITIES, loaded from every logical record.
    Insert option in effect for this table: INSERT
    
       Column Name                  Position   Len  Term Encl Datatype
    ------------------------------ ---------- ----- ---- ---- ---------------------
    ID                                  FIRST     *   ,       CHARACTER
    NAME                                 NEXT    35   ,    '  CHARACTER
    COUNTRYCODE                          NEXT     3   ,    '  CHARACTER
    POPULATION                           NEXT     *  WHT      CHARACTER            
    
    Record 4: Rejected - Error on table CITIES, column ID.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 2: Rejected - Error on table CITIES, column POPULATION.
    ORA-01722: invalid number
    
    Record 3: Rejected - Error on table CITIES, column POPULATION.
    ORA-01722: invalid number
    
    Table CITIES:
      1 Row successfully loaded.
      3 Rows not loaded due to data errors.
      0 Rows not loaded because all WHEN clauses were failed.
      0 Rows not loaded because all fields were null.
    
    Space allocated for bind array:                  35840 bytes(64 rows)
    Read   buffer bytes: 1048576
    
    Total logical records skipped:          0
    Total logical records read:             4
    Total logical records rejected:         3
    Total logical records discarded:        0
    
    Run began on Fri Oct 14 10:38:06 2011
    Run ended on Fri Oct 14 10:38:06 2011
    
    Elapsed time was:     00:00:00.23
    CPU time was:         00:00:00.09
    

    Value of the population within the data file must be a number

    Best regards

    Mohamed Houri

  • ORA - 00903:invalide name of the table

    Hello
    I don't understand. I am loged in DB as sysdba:
    select table_name, owner from all_tables where table_name ='ORDER';
    
    
    
    TABLE_NAME                     OWNER
    ------------------------------ ------------------------------
    ORDER                          SYS
    
    select * from ORDER
                  *
    error on line 1 :
    ORA-00903:invalide table name
    
    select * from SYS.ORDER
                      *
    error on line 1 :
    ORA-00903:invalide table name
    Thanks for the help.

    Hello

    You can try this

    select * from dba_tables where table_name like ('ORDER');
    
    select * from "ORDER";
    

    Concerning

    Edited by: OrionNet may 29, 2009 04:23

  • ORA-12705 unknown or invalid nls parameter during linux Data Mover psdmtx

    Hello. I install the following peoplesoft products:

    Tuxedo 10gR 3
    PeopleTools 8.52.00
    HRMS 9.10
    WebLogic 11 GR 1 material

    My operating system platform is oracle enterprise linux 6 (2.6.32 - 71.el6.x86_64 #1 SMP). Several houses of oracle database are in place. Oracle 9i, 10g and 11g are all installed in different places on this machine. The operating system oracle and peoplesoft to os account (ex: pshrtest2 - os peoplesoft administrator account) select or choose what version of oracle at the time of the connection; 9i, 10g or 11g. Currently, I am trying to create the HRMS 9.1, database of demonstration of peopletools 8.52 in Oracle 9i. I am familiar with the manual steps of generation of database demonstration using Data Mover (linux: $PS_HOME/bin/psdmtx). This version of demonstration via Data Mover manual step is a failure for the peopletools, 8.50.00, 8.51.00 and 8.52.00, but he managed to previous revisions of peopletools such as 8.48.00, 8.48.10, 8.49.00.

    Control Data Mover:

    psdmtx CT - ORACLE - CD HRTEST2 - CO SYSADM - CP SYSADM - CW - PEOP1E - FP dbsetup.dms PEOPLE

    error of the Data Mover:

    PSDMTX error: access code
    Reason: Couldn't sign database HRTEST2 with user SYSADM.

    Mover track #1
    file: datamover.trc

    ? appsrv.3917 (-1) [27/11/12 00:33:03] (0) used Cache Directory: / media/v02/psoft/hr852test2/PS_CACHE/CACHE/1 /.
    ? appsrv.3917 (-1) [27/11/12 00:33:04] (0) Cur #0.3917.HRTEST2 RC = 12705 hard = 0.432763 create login information = primary, HRTEST2, PEOPLE, handshake = 0000000000000000
    ? appsrv.3917 (-1) [27/11/12 00:33:04] (3) file: error SQL Access ManagerSQL. Stmt #: 2 error Position: 0 return: 12705 - ORA-12705: unknown or invalid NLS parameter value specified

    Mover track #2

    PID: 3948 TIMES: killed Nov 27 00:42:17 2012 PSORA initializing
    PID: 3948 TIMES: killed Nov 27 00:42:17 maximum cursor to initialize PSDB 2012 = 1024
    PID: 3948 TIMES: killed Nov 27 00:42:17 2012 environment change: NLS_LANG = AMERICAN_AMERICA. UTF8
    PID: 3948 TIMES: killed Nov 27 00:42:17 2012 initialized PSORA
    PID: 3948 TIMES: killed Nov 27 00:42:17 2012 PSORA_Initialize() nStatus = 0 0 0
    PID: 3948 TIMES: killed Nov 27 00:42:17 2012 attached to the new server HRTEST2 0 9.200000
    PID: 3948 TIMES: killed Nov 27 00:42:17 2012 cannot start session
    PID: 3948 TIMES: killed Nov 27 00:42:17 2012: 12705 oracle error code
    PID: 3948 TIMES: killed Nov 27 00:42:17 2012 ORA-12705: unknown or invalid NLS parameter value specified
    PID: 3948 TIMES: killing Nov 27 00:42:17 PS-sqlcch (0000000000000000) 2012
    PSDMTX error: access code
    Reason: Could not sign database HRTEST2 with user SYSADM

    The linux operating system user account that is used to run Data Mover is, pshrtest2. Via the account of pshrtest2, I am capable of correctly tnsping the HRTEST2 database. I am also able to connect to the HRTEST2 database successfully through sqlplus as follows:

    export ORACLE_SID = HRTEST2
    people/peop1e sqlplus
    sqlplus people/peop1e@hrtest2
    sqlplus sysadm/sysadm
    sqlplus sysadm/sysadm@hrtest2

    HRTEST2 nls_database_parameters

    NAME
    ---------
    HRTEST2

    1 selected line.


    VALUE OF THE PARAMETER
    ------------------------- -----------------------------------
    NLS_LANGUAGE AMERICAN
    NLS_TERRITORY AMERICA
    NLS_CURRENCY $
    NLS_ISO_CURRENCY AMERICA
    NLS_NUMERIC_CHARACTERS.,.
    WE8ISO8859P15 NLS_CHARACTERSET
    NLS_CALENDAR GREGORIAN
    NLS_DATE_FORMAT DD-MON-RR
    NLS_DATE_LANGUAGE AMERICAN
    NLS_SORT BINARY
    NLS_TIME_FORMAT HH.MI. SSXFF AM
    NLS_TIMESTAMP_FORMAT-DD-MON-RR HH.MI. SSXFF AM
    NLS_TIME_TZ_FORMAT HH.MI. SSXFF AM TZR
    NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI. SSXFF AM TZR
    NLS_DUAL_CURRENCY $
    BINARY NLS_COMP
    NLS_LENGTH_SEMANTICS TANK
    NLS_NCHAR_CONV_EXCP FAKE
    NLS_NCHAR_CHARACTERSET AL16UTF16
    NLS_RDBMS_VERSION 9.2.0.4.0

    20 selected lines.

    Ora-12705 error is only being received from the peopletools 8.50.00 and above (8.50.00, 8.51.00, 8.52.00) revisions. This error is also received through the application server, even if the original demonstration database has not yet been built. This ora-12705 error is not generated in the previous revisions of peopletools (8.48.00, 8.48.10, 8.49.00). What possible environmental settings can be established and used to address this issue (ex: $NLS_LANG, $LANG)?

    Please, Nicolas.

    The construction of database of demonstration on oracle 10g solved the error ora-12705.

  • ORA-00119: invalid specification for the system LOCAL_LISTENER parameter

    I cloned database of MRC. (test for role transitions) and set up DR.

    I tried to set up with no default port.

    When I'm bouncing of the db, (stop and start), cannot connect to the db.

    SQL > startup nomount;

    ORA-00119: invalid specification for the system LOCAL_LISTENER parameter

    ORA-00132: error syntax or network name not resolved "LISTENER_STBYCRMS."

    > > tnsnames.ora

    LISTENER_STBYCRMS

    (ADDRESS = (PROTOCOL = TCP) (HOST = XXXX)(PORT= 1898))

    STBY_CRMSDB =

    (DESCRIPTION =

    (ADDRESS_LIST =

    (ADDRESS = (PROTOCOL = TCP) (HOST = XXXX)(PORT = 1898))

    )

    (CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = stbycrms)

    (UR = A)

    )

    )

    LISTENER_CRMS =

    (ADDRESS = (PROTOCOL = TCP) (HOST = XXXX)(PORT = 1698))

    CRMSDB =

    (DESCRIPTION =

    (ADDRESS_LIST =

    (ADDRESS = (PROTOCOL = TCP) (HOST = XXXX)(PORT = 1698))

    )

    (CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = GCD)

    (UR = A)

    )

    )

    ~

    > > listener.ora

    LISTENER11G =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP) (HOST = XXXX)(PORT = 1898))

    )

    SID_LIST_LISTENER11G =

    (SID_LIST =

    (SID_DESC =

    (ORACLE_HOME = u01/app/oracle/product/11.2.0/dbhome_1)

    (SID_NAME = stbycrms)

    )

    )

    ADR_BASE_LISTENER11G = / u01/app/oracle

    * I have an entry to the file for local_listener pfile.

    * .db_name = "CRM".

    db_unique_name = stbycrms

    LOCAL_LISTENER = "LISTENER_STBYCRMS."

    Thank you

    Hello

    LISTENER_STBYCRMS (ADDRESS = (PROTOCOL = TCP) (HOST = XXXX)(PORT= 1898))

    Is the above entry is correct according to the syntax?

    where give you "="?

    LISTENER_STBYCRMS = (Description = (Address = (Protocol = TCP (port = 1898))(Host=Neptune)))

    or

    LISTENER_STBYCRMS =

    (DESCRIPTION =

    (ADDRESS_LIST =

    (ADDRESS = (PROTOCOL = TCP) (HOST = XXXx)(PORT = 1898))

    )

    )

    -Pavan Kumar N

  • ORA-20507: invalid numeric value

    Hi all
    I implement this excellent example: http://apex.oracle.com/pls/otn/f?p=48254:2:965943842947140:NO:P2_EMPNO:7369 #.
    I am able to call the PopUp page and create the new value for the element. "My data is also backed up in my form Page, but I get a ' ORA-20507: invalid numeric value ' error message. Once, I check the table that the record has been inserted, but the error message continues to be displayed.
    I saw the Forum and many State of discussions that it is a "to_number" which must be added to the logic in the application process. I tried this and have also tried logic V ("") for the Page element in the process of application, but without success. If anyone knows how to fix this your help is really needed, thanks.

    Hi Charles,

    The example of the 'new town' was based on the assumption that the city would be the value stored on the table rather than a foreign key.

    I've updated your process to get the ID for the new item and pass back to the home page:

    DECLARE
     vCOUNT NUMBER;
     vID NUMBER;
    BEGIN
     IF :G_CLASS_NAME IS NOT NULL THEN
      SELECT COUNT(*) INTO vCOUNT FROM HRT_CLASS_NAME WHERE CLASS_NAME = :G_CLASS_NAME;
      IF vCOUNT = 0 THEN
       INSERT INTO HRT_CLASS_NAME (CLASS_NAME) VALUES (:G_CLASS_NAME);
      END IF;
      SELECT PK_CLASS_NAME_ID INTO vID
       FROM HRT_CLASS_NAME WHERE CLASS_NAME = :G_CLASS_NAME;
      HTP.PRN(vID);
     END IF;
    END;
    

    (Note that I had a lot of problems to actually make a value - the definition of the table displays the fields with a type of NUMBER(*,0) - I think that this should be just NUMBER - you might want to change these, I've updated PK_CLASS_NAME_ID)

    The PTH. PRN (vID) line passes the PK of the folder to the javascript function call that past on it (the "ret" in the code value) return to the homepage and the new classname:

    function saveClassName()
    {
      var classname = document.getElementById('P3_CLASS_NAME').value;
     if (classname == '')
     {
      alert('You must enter in a name');
      return false;
     }
     else
     {
      var get = new htmldb_Get(null,$v('pFlowId'), 'APPLICATION_PROCESS=CREATE_CLASS_NAME',3);
      get.add('G_CLASS_NAME',classname);
      ret = get.get();
      opener.updateClassNameList(ret, classname);
      get = null;
      close();
     }
    }
    

    The function updateClassNameList on the homepage just must then use to create the list, select an option:

    function updateClassNameList(newid, newclassname)
    {
     var classnamelist = document.getElementById('P2_FK_CLASS_NAME_ID');
     appendToSelect(classnamelist, newid, newclassname);
     classnamelist.selectedIndex = classnamelist.options.length - 1;
    }
    

    Andy

  • ORA-29283: invalid file operation

    Hi friends,
    I m getting ORA-29283: invalid file operation. I tried to use create directory option as well. I have to wriite the file to a specific location determined by the system setting
    even I tried to write by specifying the path setting and direct read/write permision he throw the error.any even input will be highly appreciated.
    Thank you
    Create or replace procedure (table_csv)
    in_succ_fail IN kcc_case_trans_fin_audit.success_or_fail%type by default NULL
    in_team_id IN kcc_case_trans_fin_audit.ounit_identifier_kt%type by default NULL,
    in_run_reference IN kcc_case_trans_fin_audit.run_reference%type by default NULL,
    )
    IS

    v_file_path varchar2 (100) default Null;-to contain the path
    v_file_name varchar2 (100) default Null; - to hold the name of the file
    v_file_name_component varchar2 (20) default Null; - to contain the part of file name
    v_string varchar2 (4000) default Null;
    v_actual_start_date PROVISIONS.actual_start_date%type;
    v_actual_end_date PROVISIONS.actual_end_date%type;
    v_provid_identifier PROVISIONS.provid_identifier%type;
    v_citem_identifier PROVISIONS.citem_identifier%type;
    v_start_date COST_COMMITMENTS.start_date%type;
    v_end_date COST_COMMITMENTS.end_date%type;
    v_ccentr_identifier COST_COMMITMENTS.ccentr_identifier%type;
    v_ccreas_identifier COST_COMMITMENTS.ccreas_identifier%type;
    v_meaning coded_cost_reasons.meaning%type;
    v_cost_centre_code cost_centres.cost_centre_code%type;
    v_sch_start_date schedules.start_date%type;
    v_sch_end_date schedules.end_date%type;
    v_schedule_type schedules.schedule_type%type;
    v_she_ccentr_identifier schedules.ccentr_identifier%type;
    v_she_cost_centre_code cost_centres.cost_centre_code%type;
    v_success_or_fail kcc_case_trans_fin_audit.success_or_fail%type;
    v_file_audit UTL_FILE. TYPE_DE_FICHIER; -File pointer variable
    File_Exception Exception; -User-defined exceptions

    Cursor cur_kctfaudit is
    Select ID, krestr_identifier, person_identifier,.
    ounit_identifier_kt, new_ccentr_identifier
    provis_identifier, ccommi_identifier, schedu_identifier
    success_or_fail, error_message, run_reference
    of kcc_case_trans_fin_audit
    where success_or_fail = in_succ_fail
    or ounit_identifier_kt = in_team_id
    or run_reference = in_run_reference;
    Begin
    -To get the location of the directory, and then to make the name of the file.
    v_file_path: = Adf_Getparam ('END', 'RFDR');
    Select to_char (sysdate, 'ddmmyyhhmi') in the double v_file_name_component;
    v_file_name: = 'kcc_restr_fin_audit_ ' | v_file_name_component |'. CSV';
    If v_file_path is null then
    Raise FILE_Exception;
    End if;
    -If the system "END/RFDR" parameter is not set then do not pass further and get out
    If v_file_path is not null then
    v_file_path: = v_file_path | » \';
    v_file_audit: = UTL_FILE. FOPEN (v_file_path, v_file_name, 'W');
    -v_file_audit: = UTL_FILE. FOPEN ("C: \ KCCTEST', v_file_name, 'W'");
    -If the file to write has been opened successfully
    IF utl_file.is_open (v_file_audit) THEN
    -loops through each line of the file
    I'm IN cur_kctfaudit LOOP
    -The value null if the provis_identifier on the case_tran_fin_audit is null.

    -a code here...

    -to build the string with all the information to write to the file

    v_string: = i.identifier | ','
    || baf_name_list (i.person_identifier, 'P'). ','
    || baf_name_list (i.ounit_identifier_kt, 'P'). ','
    || i.new_ccentr_identifier | ','
    || v_sch_start_date | ','
    || v_sch_end_date | ','
    || v_schedule_type | ','
    || v_she_cost_centre_code | ','
    ||     v_success_or_fail | ','
    || i.ERROR_MESSAGE | ','
    || i.krestr_identifier;
    UTL_FILE. Put_line (v_file_audit, v_string, autoflush = > true);
    END LOOP;

    DBMS_OUTPUT. Put_line (' file Created: ' | v_file_name);
    UTL_FILE. FCLOSE (v_file_audit);
    END IF;

    END IF;
    EXCEPTION
    WHEN utl_file.invalid_mode THEN
    RAISE_APPLICATION_ERROR (-20051, 'invalid parameter Mode');
    WHEN utl_file.invalid_path THEN
    RAISE_APPLICATION_ERROR (-20052, 'Invalid File Location');
    WHEN utl_file.invalid_filehandle THEN
    RAISE_APPLICATION_ERROR (-20053, 'no valid Filehandle');
    -WHEN utl_file.invalid_operation CAN
    -RAISE_APPLICATION_ERROR (-20054, "Invalid File opération");
    WHEN utl_file.internal_error THEN
    RAISE_APPLICATION_ERROR (-20057, 'internal error');
    WHEN utl_file.charsetmismatch THEN
    RAISE_APPLICATION_ERROR (-20058, 'Open with FOPEN_NCHAR but later IO inconsistent');
    WHEN utl_file.file_open THEN
    RAISE_APPLICATION_ERROR (-20059, "file already open");
    WHEN utl_file.invalid_maxlinesize THEN
    RAISE_APPLICATION_ERROR (-20060, 'Row size exceeds 32 K');
    WHEN utl_file.invalid_filename THEN
    RAISE_APPLICATION_ERROR (-20061, "Invalid File Name");
    WHEN utl_file.access_denied THEN
    RAISE_APPLICATION_ERROR (-20062, "file access denied by ');
    When FILE_Exception then
    RAISE_APPLICATION_ERROR (-20002,' system END/RFDR parameter is not defined.) Set the system and try again! ');
    dbms_output.put_line (' system END/RFDR parameter is not defined.) Set the system and try again! ');
    WHILE others THEN
    -dbms_output.put_line (sqlerrm);
    RAISE_APPLICATION_ERROR (-20099, "UTL_FILE Unknown Error");

    END table_csv;
    29283, 00000, "invalid file operation"
    // *Cause:  An attempt was made to read from a file or directory that does
    //          not exist, or file or directory access was denied by the
    //          operating system.
    // *Action: Verify file and directory access privileges on the file system,
    //          and if reading, verify that the file exists.
    

    I have confidence in Oracle reports reality of the more acurrately, you.
    View simplified code that produces the error and after CUT PASTE & showing evidence why Oracle is bad.

  • java.sql.SQLSyntaxErrorException: ORA-00904: invalid identifier

    Hi all

    IM using JDeveloper 11.1.1.6.0.

    Here, I said method in the main class, which returns an object of type of connection reference.

    When I run the app I type 'ksh' in the fields and click on submit.

    It shows the following error, java.sql.SQLException: ORA-00904: "KSH": invalid identifier

    {code}

    public static list < privileges > getUserPrivileges (DBTransaction dbt, object userId)

    {

    String sql = "SELECT m.menu_code" +.

    "OF sec_menus m p sec_menu_privileges JOIN +.

    "WE (m.menu_code = p.menu_code '+)"

    "(ET m.app_id = p.app_id)" + "

    "JOIN sec_user_app_groups g +.

    "WE (g.GROUP_ID = p.GROUP_ID '+)"

    "AND p.app_id = g.app_id" +.

    "AND user_id =" + userId + "."

    "             )";

    PreparedStatement stat = null;

    ResultSet rs = null;

    List of privileges <>privilegesList = new ArrayList < privileges > ();

    MenuCode string = "";

    Try

    {

    = stat dbt.createPreparedStatement (sql, 1);

    RS = stat.executeQuery ();

    While (RS. Next())

    {

    menuCode = rs.getString (1);

    }

    }

    catch (System.Exception e)

    {

    e.printStackTrace ();

    }

    Finally

    {

    closeStatement (stat);

    closeResultSet (SR);

    }

    Return privilegesList;

    }

    Public Shared Sub closeStatement (stat of statement)

    {

    Try

    {

    STAT. Close();

    }

    catch (SQLException e)

    {

    }

    }

    public static void closeResultSet (ResultSet rs)

    {

    Try

    {

    RS. Close();

    }

    catch (SQLException e)

    {

    }

    }

    ------------

    CREATE TABLE SEC_USERS

    (

    USER_ID VARCHAR2 (10),

    USER_NAME VARCHAR2 (50).

    PASSWORD VARCHAR2 (300)

    )

    Insert into SEC_USERS

    (USER_ID, USER_NAME, USER_FIRST_NAME, USER_LAST_NAME, PASSWORD)

    Values

    ('ksh', 'ksh', 'test');

    COMMIT;

    -----------------------

    Error:

    java.sql.SQLSyntaxErrorException: ORA-00904: "KSH": invalid identifier

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462)

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)

    at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:931)

    at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:481)

    at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:205)

    at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:548)

    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:217)

    at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:947)

    at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1283)

    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1441)

    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3769)

    at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3823)

    at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1671)

    dry. ControllerUtil.getUserPrivileges (ControllerUtil.java:90)

    dry. ControllerUtil.login (ControllerUtil.java:59)

    at sec.model.AppModuleImpl.login(AppModuleImpl.java:77)

    at sec.control.bean.LoginPage.loginAction(LoginPage.java:92)

    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)

    at com.sun.el.parser.AstValue.invoke (unknown Source)

    at com.sun.el.MethodExpressionImpl.invoke (unknown Source)

    at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:46)

    at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)

    at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)

    to oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$ 1.run(ContextSwitchingComponent.java:92)

    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)

    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)

    at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:102)

    to oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$ 1.run(ContextSwitchingComponent.java:92)

    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)

    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)

    at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:96)

    at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)

    at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:889)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:379)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:194)

    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)

    to 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.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)

    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:446)

    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)

    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:446)

    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)

    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)

    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:179)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:119)

    at java.security.AccessController.doPrivileged (Native Method)

    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)

    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)

    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)

    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)

    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3715)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3681)

    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)

    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)

    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)

    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)

    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)

    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)

    < ActionListenerImpl > < processAction > java.lang.NullPointerException

    javax.faces.el.EvaluationException: java.lang.NullPointerException

    at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:51)

    at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)

    at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)

    to oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$ 1.run(ContextSwitchingComponent.java:92)

    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)

    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)

    at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:102)

    to oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$ 1.run(ContextSwitchingComponent.java:92)

    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)

    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)

    at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:96)

    at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)

    at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:889)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:379)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:194)

    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)

    to 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.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)

    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:446)

    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)

    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:446)

    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)

    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)

    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:179)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:119)

    at java.security.AccessController.doPrivileged (Native Method)

    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)

    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)

    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)

    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)

    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3715)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3681)

    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)

    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)

    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)

    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)

    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)

    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)

    Caused by: java.lang.NullPointerException

    dry. ControllerUtil.closeResultSet (ControllerUtil.java:136)

    dry. ControllerUtil.getUserPrivileges (ControllerUtil.java:118)

    dry. ControllerUtil.login (ControllerUtil.java:59)

    at sec.model.AppModuleImpl.login(AppModuleImpl.java:77)

    at sec.control.bean.LoginPage.loginAction(LoginPage.java:92)

    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)

    at com.sun.el.parser.AstValue.invoke (unknown Source)

    at com.sun.el.MethodExpressionImpl.invoke (unknown Source)

    at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:46)

    ... more than 54

    {\code}

    Thanks in advance

    The particular error that causes the ORA-00904 exception, it's that you concatenate a string literal in the SQL statement without enclosing the literal with quotes. Replace the line

    "AND user_id =" + userId + "."

    with

    "AND user_id = '" + Userid + "'" +.

    Although it will work in this way, the concatenation of literal values variable to a SQL statement is a very wrong approach. The right approach is to use a placeholder variable (for example?) in the SQL statement and to link it with the necessary value after analysis of the declaration and before running. In this way, you will be able to analyze the statement once and execute it several times with different values without new analysis view the statement. Also, the SQL engine will be able to use its SQL cache if you try to analyze the statement even once again, which will significantly improve performance. However, if you concatenate variable literal value to education, engine SQL won't recognize the statement as one already analyzed, it will not use its cache and it will analyze the statement again from scratch. From a point of view shortly, the best approach is as follows:

    "" AND user_id =? ".

    and then

    = stat dbt.createPreparedStatement (sql, 1);

    stat.setString (1, userId); Don't forget to change the username to a string type in the method declaration

    RS = stat.executeQuery ();

    There are other problems in your code. First of all, the invocation closeResultSet (rs) after closeStatement (stat) is erroneous and obsolete, because when you close a SQLStatement instance it automatically closes all its result sets. Secondly, in the finally block you call closeStatement (stat), but there is no guarantee that stat variable is not null. For example, the variable stat can be null if the SQLStatement instance has not been established successfully in the try section above.

    Dimitar

Maybe you are looking for