Home Database Mysql Tutorial ORACLE user profile配置/管理/维护

ORACLE user profile配置/管理/维护

Jun 07, 2016 pm 05:40 PM
dba oracle profile user

今天在新数据库上面创建一个USER时,要求配置资源限制,很久没有玩ORACLE了,这个东西还玩得差不多了。userprofile包括了两部分内容,1.是资源的限制,但是这个

    今天在新数据库上面创建一个USER时,要求配置资源限制,很久没有玩ORACLE了,这个东西还玩得差不多了。

    user profile包括了两部分内容,1.是资源的限制,但是这个默认是不生效的,香港服务器,要启动(resource_limit为true)才生效。2.用户密码限制,这个配置后,再用户下次登陆就生效。通过user profile配置的限制都是在用户下次登陆时生效,对当前的session不生效。数据库中有一个默认的profile,名字是DEFAULT,在11G前这个DEFAULT没有任何的限制,但是从11G开始,对PASSWORD_LIFE_TIME 为180,FAILED_LOGIN_ATTEMPTS为10次。

    资源的限制包括下面几个部分

    密码限制由下面几个部分组成

下面是详细的说明

SESSIONS_PER_USER:指定每一个用户最大可以并发sessions,如果达到了最大session后会报ORA-02391: exceeded simultaneous SESSIONS_PER_USER limit错误

CPU_PER_SESSION:指定每一个SESSION总共使用CPU时间,单位是1/100秒,如果超过后会报下面的错误ORA-02392: exceeded session limit on CPU usage, you are being logged off

CPU_PER_CALL:每一次CALL使用的CPU时间,也就是一条SQL调用(a parse, execute, or fetch),单位是1/100秒,如果超过后会报ORA-02393: exceeded call limit on CPU usage。

CONNECT_TIME:限制一个session总的连接时间,单位为分钟。如果超过最大值会报ORA-02399: exceeded maximum connect time, you are being logged off

IDLE_TIME:指定一个session空闲的时间,单位为分钟。如果超过最大值会报ORA-02396: exceeded maximum idle time, please connect again

LOGICAL_READS_PER_SESSION:限制每一个session读取logical块的个数。

LOGICAL_READS_PER_CALL:限制一条SQL读取logical块的个数。如果超过最大值会报ORA-02395: exceeded call limit on IO usage

PRIVATE_SGA:限制一个session在sga中私有空间的分配。

COMPOSITE_LIMIT:指定一个session总的资源代价。

FAILED_LOGIN_ATTEMPTS:指定帐户在被锁之前可以使用错误密码尝试登陆的次数,默认是10次

PASSWORD_LIFE_TIME:指定密码存活的天数,默认是180天。

PASSWORD_LOCK_TIME:登陆失败过,帐户被锁定的天数。默认值是1天。

PASSWORD_GRACE_TIME:指密码到期后,还可以使用多少天来登陆数据库,默认是7天。

PASSWORD_VERIFY_FUNCTION:指定密码验证函数。如果为null就表示没有。

PASSWORD_REUSE_TIME and PASSWORD_REUSE_MAX :这个两个参数要一起配置才会生效,PASSWORD_REUSE_TIME指相同密码被重用的间隔天数,PASSWORD_REUSE_MAX相同密码再次被重用要求最低的密码修改次数(不包括本次修改成重用密码)

 

下面是开始测试:

   测试环境:OS RHEL 5.6 X86_64 DB:11.2.0.2

1,香港服务器,创建profile

2.查看profile的内容

3 修改/查看某个用户的profile

4 修改profile中的资源的值。

    这里包括两部分的内容,1.修改成用户指定的值,2.是修改成系统默认的值

5 删除profile

当某个profile被删除时,如果这个profile已经被分配给某个用户,那么我们在删除的时候要加上cascade,并且已经被分配的用户的profile会被自己修改成default profile。

6。修改参数,使资源限制生效

这个参数默认值是false,是一个动态参数

user profile这个比较操作比较简单,香港服务器租用,重要的是要理解里面参数的含意。

下面是资源限制达到最大值后的报错提示。

 

本文出自 “认真就输” 博客,请务必保留此出处

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Redstone/RED currency listing price forecast and detailed explanation of token economics Redstone/RED currency listing price forecast and detailed explanation of token economics Mar 03, 2025 pm 10:42 PM

This time, the Redstone token $RED will be launched on Binance Launchpool on Binance TGE! This is also the first time Binance has launched a pre-market trading limit mechanism! The first day limit is 200%, and the ban will be lifted after 3 days to avoid "the peak will be achieved when the market opens"! Launchpool mechanism introduces the BinanceLaunchpool participating in Redstone that needs to pledge designated tokens (BNB, USDC, FDUSD) activity period is 48 hours: 08:00 UTC on February 26, 2025 to 08:00 UTC on February 28, 2025 ending this pre-market daily limit rule: 18:00 on February 28, 2025

How to do Oracle security settings on Debian How to do Oracle security settings on Debian Apr 02, 2025 am 07:48 AM

To strengthen the security of Oracle database on the Debian system, it requires many aspects to start. The following steps provide a framework for secure configuration: 1. Oracle database installation and initial configuration system preparation: Ensure that the Debian system has been updated to the latest version, the network configuration is correct, and all required software packages are installed. It is recommended to refer to official documents or reliable third-party resources for installation. Users and Groups: Create a dedicated Oracle user group (such as oinstall, dba, backupdba) and set appropriate permissions for it. 2. Security restrictions set resource restrictions: Edit /etc/security/limits.d/30-oracle.conf

Do I need to install an Oracle client when connecting to an Oracle database using Go? Do I need to install an Oracle client when connecting to an Oracle database using Go? Apr 02, 2025 pm 03:48 PM

Do I need to install an Oracle client when connecting to an Oracle database using Go? When developing in Go, connecting to Oracle databases is a common requirement...

Oracle PL/SQL Deep Dive: Mastering Procedures, Functions & Packages Oracle PL/SQL Deep Dive: Mastering Procedures, Functions & Packages Apr 03, 2025 am 12:03 AM

The procedures, functions and packages in OraclePL/SQL are used to perform operations, return values ​​and organize code, respectively. 1. The process is used to perform operations such as outputting greetings. 2. The function is used to calculate and return a value, such as calculating the sum of two numbers. 3. Packages are used to organize relevant elements and improve the modularity and maintainability of the code, such as packages that manage inventory.

How many RED tokens can you get when participating in Redstone (RED) airdrops? How many RED tokens can you get when participating in Redstone (RED) airdrops? Mar 04, 2025 pm 05:48 PM

Redstone (RED) airdrop activity is in full swing, attracting many investors to participate. Redstone is an advanced cross-chain data oracle, with a strong validator network, real-time data integration capabilities, and community incentive mechanisms, and has been supported by many well-known investment institutions. Its unique technological advantages make it stand out in the highly competitive oracle market and has huge potential for future development. This article will conduct in-depth analysis of the Redstone project, explore the number of RED tokens available for participating in airdrops, and make an outlook on the price of RED tokens, helping investors better understand and evaluate the Redstone project and investment risks. Especially for BNB holders, participating in airdrops will have the opportunity to obtain RED tokens and enrich the digital asset group

What are the erp system software? Recommended erp system software What are the erp system software? Recommended erp system software Apr 03, 2025 pm 12:54 PM

When selecting ERP software, first clarify the needs of the enterprise, including industry, scale, budget and IT infrastructure, and then select the system that meets the needs according to the core business process. Common ERP systems include: SAP is suitable for large enterprises, with powerful functions but expensive functions; Oracle has comprehensive functions but is expensive, suitable for large enterprises; Odoo is suitable for small and medium-sized enterprises, with low cost and customizable; SaaS ERP is deployed in the cloud, paying on demand, and suitable for rapidly developing enterprises. Before choosing, you should conduct a trial, consult professional advice, and pay attention to after-sales service to choose the ERP system that is most suitable for you.

60 must-read industry terms in the currency circle, guaranteed to make you familiar with crypto jargon 60 must-read industry terms in the currency circle, guaranteed to make you familiar with crypto jargon Dec 17, 2024 pm 03:20 PM

Want to navigate the cryptocurrency world? Must-read this 60-page guide to industry terms! This guide covers everything from basic concepts like cryptocurrencies, blockchains, and stablecoins, to trading terms like long, short, and leverage, to technical terms like nodes, smart contracts, and DeFi. A solid understanding of these terms will provide you with a solid foundation for confident conversations and investment decisions in the cryptocurrency community.

The reason for the recent surge in SUPRA currency The reason for the recent surge in SUPRA currency Dec 09, 2024 am 11:50 AM

In recent times, the price of SUPRA currency has surged. This phenomenon is attributed to the following main reasons: Support of OKX trading platform: OKX has become the first mainstream trading platform for SUPRA currency, and its large user base and liquidity have attracted a large amount of investment. who. Powerful ecosystem and use cases: SUPRA coin is the native token of the SupraOracles oracle network, providing data support for various blockchain applications. Growth of market demand: The oracle market is in a period of rapid growth, and SupraOracles meets this market demand with its reliability and security.

See all articles