Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • find_cons.sql Oracle
  • Wait time tuning research Oracle
  • Oracle 11g Environment Setup Oracle
  • reset Sequence Oracle
  • Find_stale_dr.sql finding stale physical DR.. Oracle
  • CTAS with LONG Column for 7.x and 8 and 8i Oracle
  • V$transaction notes for finding XID composition. Oracle
  • Facts about SCN and Rollback Segment Oracle
  • Oracle Release Explaination Oracle
  • How to analyze statspack or AWR report. Oracle
  • move_arch_files.ksh /* Good One */ Linux/Unix
  • To Find Orphan OS processes. Linux/Unix
  • upload.html PHP/MYSQL/Wordpress
  • good linux notes Linux/Unix
  • Jai Shree Ram Linux/Unix

Default User Profile

Posted on 27-May-2009 By Admin No Comments on Default User Profile

Problem Description

——————-

The DBA needs to know which values are assigned to limits set to DEFAULT

for a given profile. Querying DBA_PROFILES does not display the actual values

but rather lists DEFAULT for those LIMITs.

Solution Description

——————–

From the SQL*Plus prompt, type:

SQL> select * from dba_profiles where profile = ‘DEFAULT’;

PROFILE RESOURCE_NAME RESOURCE_TYPE LIMIT

———- —————————- ————- ——————–

DEFAULT COMPOSITE_LIMIT KERNEL UNLIMITED

DEFAULT SESSIONS_PER_USER KERNEL UNLIMITED

DEFAULT CPU_PER_SESSION KERNEL UNLIMITED

DEFAULT CPU_PER_CALL KERNEL UNLIMITED

DEFAULT LOGICAL_READS_PER_SESSION KERNEL UNLIMITED

DEFAULT LOGICAL_READS_PER_CALL KERNEL UNLIMITED

DEFAULT IDLE_TIME KERNEL UNLIMITED

DEFAULT CONNECT_TIME KERNEL UNLIMITED

DEFAULT PRIVATE_SGA KERNEL UNLIMITED

DEFAULT FAILED_LOGIN_ATTEMPTS PASSWORD UNLIMITED

DEFAULT PASSWORD_LIFE_TIME PASSWORD UNLIMITED

DEFAULT PASSWORD_REUSE_TIME PASSWORD UNLIMITED

DEFAULT PASSWORD_REUSE_MAX PASSWORD UNLIMITED

DEFAULT PASSWORD_VERIFY_FUNCTION PASSWORD NULL

DEFAULT PASSWORD_LOCK_TIME PASSWORD UNLIMITED

DEFAULT PASSWORD_GRACE_TIME PASSWORD UNLIMITED

16 rows selected.

The value of the LIMIT column corresponds to the “default” value.

You can change the default profile by changing the value in the LIMIT column.

SQL> ALTER PROFILE DEFAULT limit ;

Ex:

SQL> ALTER PROFILE DEFAULT LIMIT FAILED_LOGIN_ATTEMPTS 5 PASSWORD_LOCK_TIME 1;

When you create a new profile, you must set at least one limit. It automatically

uses the default limits for all other resources not explicitly initialized.

Ex:

SQL> CREATE PROFILE test LIMIT connect_time 60;

Profile created.

SQL> select * from dba_profiles where profile = ‘TEST’;

PROFILE RESOURCE_NAME RESOURCE_TYPE LIMIT

———- —————————- ————- ——————–

TEST COMPOSITE_LIMIT KERNEL DEFAULT

TEST SESSIONS_PER_USER KERNEL DEFAULT

TEST CPU_PER_SESSION KERNEL DEFAULT

TEST CPU_PER_CALL KERNEL DEFAULT

TEST LOGICAL_READS_PER_SESSION KERNEL DEFAULT

TEST LOGICAL_READS_PER_CALL KERNEL DEFAULT

TEST IDLE_TIME KERNEL DEFAULT

TEST CONNECT_TIME KERNEL 60

TEST PRIVATE_SGA KERNEL DEFAULT

TEST FAILED_LOGIN_ATTEMPTS PASSWORD DEFAULT

TEST PASSWORD_LIFE_TIME PASSWORD DEFAULT

TEST PASSWORD_REUSE_TIME PASSWORD DEFAULT

TEST PASSWORD_REUSE_MAX PASSWORD DEFAULT

TEST PASSWORD_VERIFY_FUNCTION PASSWORD DEFAULT

TEST PASSWORD_LOCK_TIME PASSWORD DEFAULT

TEST PASSWORD_GRACE_TIME PASSWORD DEFAULT

Only the resource CONNECT_TIME has a value of 60 in the column LIMIT. All other

values refer to the DEFAULT limit – which means you have to look at the DEFAULT

profile to see which value is under LIMIT by using:

SQL> select * from dba_profiles where profile = ‘DEFAULT’;

Explanation

———–

If you only query DBA_PROFILES, this does not give sufficient information for

the default profile values. You need to query DBA_PROFILES where profile = ‘DEFAULT’

in order to see the default values.

Oracle, SQL scripts

Post navigation

Previous Post: Privilege to describe the table.
Next Post: How To Limit The Access To The Database So That Only One User Per Schema Are Connected (One Concurrent User Per Schema)

Related Posts

  • RAC 11g with vmware Oracle
  • exp syntax in oracle 10g Oracle
  • Locktree.sql Oracle
  • Implementing Listener Security Oracle
  • create user with unlimited quota Oracle
  • Check Oracle installed products using one command Oracle

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • Oracle (392)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (341)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • load SPM baseline from cursor cache05-Jun-2025
  • Drop all SPM baselines for SQL handle05-Jun-2025
  • Load SPM baseline from AWR05-Jun-2025
  • Drop specific SQL plan baseline – spm05-Jun-2025
  • findinfo.sql (SQL for getting CPU and Active session info)27-May-2025
  • SQL Tracker by SID sqltrackerbysid.sql22-Apr-2025
  • How to connect to Oracle Database with Wallet with Python.21-Mar-2025
  • JSON/XML Types in Oracle18-Mar-2025
  • CPU Core related projections12-Mar-2025
  • Exadata Basics10-Dec-2024

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • longtx.sql with the flag whether session is blocking any DML locks or not. Oracle
  • Find sort details from Db find_sort.sql Oracle
  • Transfer SQL Profiles from One database to other database. Oracle
  • Export With Query Another Example. Oracle
  • Directory wise folder wise space usage Linux/Unix
  • SQLPLUS COPY command Precautions. Oracle
  • findx.sql /* Find Indexes on specified USER.TABLE_NAME */ Oracle
  • upload.html PHP/MYSQL/Wordpress

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme