Oracle Broken Read

Source: Internet
Author: User

1. Set the Sql*plus prompt

Sql> set Sqlprompt "_user ' @ ' _connect_identifier>"

[Email protected]>

In order to automatically set sqlprompt for all Sql*plus sessions, place the above command in the Glogin.sql file in the Oracle_home/sqlplus/admin directory

2. View the system permissions granted by the role resource

Sql> SELECT * from Dba_sys_privs where grantee= ' RESOURCE ';

GRANTEE PRIVILEGE ADM
------------------------------   --------------------------------------- ---
RESOURCE CREATE TRIGGER NO
RESOURCE CREATE SEQUENCE NO
RESOURCE CREATE TYPE NO
RESOURCE CREATE PROCEDURE NO
RESOURCE CREATE CLUSTER NO
RESOURCE CREATE OPERATOR NO
RESOURCE CREATE Indextype NO
RESOURCE CREATE TABLE NO

3. View System Timestamp

Sql> select Systimestamp from dual;

4. View the size of the PGA and SGA in the case of automatic Memory management

Sql> select sum (value) from V$sesstat natural join V$statname where name= ' session PGA Memory ';

sql> select sum (bytes) from V$sgastat;

5. Identify all invalid objects in the database

Sql> Select Owner,object_name,object_type from dba_objects where status= ' INVALID ';

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.