Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7668647
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T15:24:52+00:00 2026-05-31T15:24:52+00:00

I have this Oracle table which is used to store application settings. This is

  • 0

I have this Oracle table which is used to store application settings.

enter image description here

This is the SQL script that it’s used to create the table:

CREATE TABLE "GLOBALSETTINGS"(
  "SettingName" Varchar2(40 ) NOT NULL,
  "SettingValue" Varchar2(40 )
)
/

-- Add keys for table GLOBALSETTINGS

ALTER TABLE "GLOBALSETTINGS" ADD CONSTRAINT "Key14" PRIMARY KEY ("SettingName")
/

ALTER TABLE "GLOBALSETTINGS" ADD CONSTRAINT "SettingName" UNIQUE ("SettingName")
/

This is the SQL statement that I want to use:

UPDATE GLOBALSETTINGS
SET settingValue =
  CASE
    WHEN settingName = 'SessionTTL'
    THEN '30'
    WHEN settingName = 'MaxUsersActive'
    THEN '40'
    ELSE settingValue
  END
WHERE settingName IN ('SessionTTL', 'MaxUsersActive');

But When I run it in SQL developer I get this error message:

Error starting at line 1 in command:
UPDATE GLOBALSETTINGS 
   SET settingValue = case 
                        when settingName = 'SessionTTL'  then '30' 
                        when settingName = 'MaxUsersActive'  then '40' 
                        else settingValue
                      end
WHERE settingName in ('SessionTTL', 'MaxUsersActive')
Error at Command Line:7 Column:6
Error report:
SQL Error: ORA-00904: "SETTINGNAME": invalid identifier
00904. 00000 -  "%s: invalid identifier"
*Cause:    
*Action:

How I can fix the problem?

Best wishes
Peter

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T15:24:53+00:00Added an answer on May 31, 2026 at 3:24 pm

    As you created the table columns using double quotes they are now case-sensitive.

    So you have to use quotes all the time.

    UPDATE GLOBALSETTINGS
    SET "SettingValue"  =
      CASE
        WHEN "SettingName" = 'SessionTTL' THEN '30'
        WHEN "SettingName" = 'MaxUsersActive' THEN '40'
        ELSE "SettingValue" 
      END
    WHERE "SettingName"  IN ('SessionTTL', 'MaxUsersActive');
    

    Please re-read the manual regarding SQL identifiers.

    http://docs.oracle.com/cd/E11882_01/server.112/e26088/sql_elements008.htm#i27570

    Especially the paragraph:

    Oracle does not recommend using quoted identifiers for database object names.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this table in an Oracle DB which has a primary key defined
We have an application (well, 3) which uses Oracle 9i, however this is being
I have an entity that maps to an external oracle table which is one
I have an Access 2002 application which links an Oracle table via ODBC with
I have a table like this (Oracle, 10) Account Bookdate Amount 1 20080101 100
I have created a table on an Oracle 10g database with this structure :
I have a working custom UserNamePasswordValidator that calls into my Oracle DB. This class
I have this table: create table demo ( key number(10) not null, type varchar2(3)
I have a java.sql.Clob object which I populate from an Oracle query and then
I have a table with about 100.000 rows that used to look more or

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.