Oracle Synonym Statement Backup

Source: Internet
Author: User

--Create synonyms
Create synonym t_system_userdepartment for Xtzl. T_system_userdepartment;
--Query synonyms
SELECT * from SYS. all_synonyms WHERE synonym_name= ' t_system_post ';
--Query the synonyms under the current user
SELECT * from user_synonyms;
--Authorization inquiry
Grant SELECT on Tabel1 to SECMGT
-REVOKE permission;
Revoke insert on t_system_userdepartment from SECMGT;
--Query the serial number under the current user
SELECT * from User_sequences;
--Test query
Select A.*, rowid from T_system_department A;
--Delete test
Delete from t_system_department where id= ' 1 ';
--Test insert
Insert into t_system_department (Id,deptname,parentid,state,orderno) VALUES (1, ' Test Department ', ' 0 ', ' Enable ', ' 123 ');
--Delete test
drop table t_system_userdepartment;

Oracle Synonym Statement Backup

Related Article

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.