Oracle queries all sequences

Source: Internet
Author: User

Precautions :

    1. Must be logged in as Administrator;
    2. Sequence_owner must be uppercase, regardless of whether your user name is uppercase or not. Only uppercase can be recognized.
--查看当前用户的所有序列    select SEQUENCE_OWNER,SEQUENCE_NAME from dba_sequences where sequence_owner=‘用户名‘;   --查询当前用户的序列总数    select count(*) from dba_sequences where sequence_owner=‘用户名‘;   --示例:    select SEQUENCE_OWNER,SEQUENCE_NAME from dba_sequences  where sequence_owner=’WGB;   select count(*) from dba_sequences where sequence_owner=’ WGB’;  SQL> select SEQUENCE_OWNER,SEQUENCE_NAME from dba_sequences where sequence_owner=‘CHES‘;SEQUENCE_OWNER          SEQUENCE_NAME--------------------   ---------------------------CHES                CHE_PACKAGE_SEQCHES                CHE_PART_SEQCHES                CHE_SCHEDULE_SEQCHES                CHE_TYPE_SEQSQL> select count(*) from dba_sequences where sequence_owner=‘CHES‘;     COUNT(*)   ----------     4  

Oracle queries all sequences

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.