cluster: Permission to create a cluster for any user
Create any index is used to create an index for any user.
Create any procedure: Permission to create a stored procedure for any user
Create any sequence permission to create a sequence for any user
Create any snapshot: Permission to create snapshots for any user
Create any synonym permission to create a synonym for any user
Create any table: Permission t
synonym for CHAR_LENGTH.
◆ COMPRESS (string_to_compress)
Compress a string. This function requires that MySQL has been compressed using a compression library such as zlib. Otherwise, the return value is always NULL. UNCOMPRESS () can extract compressed strings.
Mysql> select length (COMPRESS (REPEAT ('A', 1000);-> 21 mysql> select length (COMPRESS (")); -> 0 mysql> select length (COMPRESS ('A');-> 13 mysql> select length (COMPRESS (REPEAT ('A', 16);-
from multiple tables and cannot perform DML operations.About rownum:Rownum has a feature that is either equal to 1 or smaller than a value. It cannot be directly equal to or greater than a value. Rownum is usually used for pagination.Exercise: Query between 5th data records and 10th data records:Select first_name, rnum from (select rownum rnum, first_name from s_emp where rownum Split display:SELECT * FROM (SELECT a. *, rownum r FROM S_EMP a WHERE r between 5 AND 10 );Exercise: which employees
string containing the characters given by the code values of these integers. The NULL value is omitted.Convert all parameters into characters and connect them together.
5. CHAR_LENGTH (str)The return value is the length of the str string, measured in characters.
6. CHARACTER_LENGTH (str)CHARACTER_LENGTH () is a synonym for CHAR_LENGTH.
7. COMPRESS (string_to_compress)Compress a string.
8. CONCAT (str1, str2 ,...)Returns the string generated by the co
1. Create a synonymCreate [public] synonym SynonymFor object;
Example 1: Create a concise name for view dept_sum_vuCreate synonym d_sum for dept_sum_vu;Example 2: create a public synonym for all usersCreate public synonym dept for Scott. Dept;2. query Synonyms1) query private SynonymsSelect synonym_name, table_owner,
string processing functions
1. ASCII (str)
The return value is the leftmost character value of the str string, that is, the ascii code of the leftmost character.
If str is a null string, the return value is 0. If 'str' is NULL, the return value is NULL.
ASCII () is a character with a value ranging from 0 to 255.
2. BIN (N)
The string representation of the binary value whose return value is N.
N is a longlong (BIGINT) number. This is equivalent to CONV (N, 10, 2 ). If N is NULL, the return valu
Create any index is used to create an index for any user.
Create any procedure: Permission to create a stored procedure for any user
Create any sequence permission to create a sequence for any user
Create any snapshot: Permission to create snapshots for any user
Create any synonym permission to create a synonym for any user
Create any table: Permission to create a table for any user
Create any trigger: Per
permissions for creating a sequence for any userCreate any snapshot permissions for creating snapshots for any userCreate any synonym permissions for creating synonymous names for any userCreate any table creates table permissions for any userCreate any trigger permissions for creating triggers for any userCreate any view permissions for creating views for any userCreate cluster A user's permissions for creating a clusterCreate database link permissi
resulting string does not conform to the given character set, a warning is issued. Similarly, if the strict SQL schema is activated, the result of char () becomes NULL.
Char_length (str)
The return value is the length of the string str, and the length of the unit is a character. A multibyte character counts as a single word. For one containing five two-byte character sets, the LENGTH () return value is 10, and the return value of Char_length () is 5.
Character_length (str)
Character_length
USER logons/logoffs User_audit_objectaudit Trail Records for statements Concer Ning objects, specifically:table, cluster, view, index, sequence, [public] database link, [public] synonym, procedure, tr Igger, rollback segment, tablespace, role, user User_audit_session User_audit_statementaudit Trail Records concerning GRA NT, revoke, audit, Noaudit and alter system User_audit_trailaudit trail entries relevant to the USER User_catalogtables, V Iews, sy
Tags: SQL foundation Creation Other scenario object (15)View Overview:– Create, modify, and retrieve data from a view– Data Manipulation Language (DML) operations on the view– Delete ViewDatabase objects
Object objects
Description description
Table tables
A basic collection of data stores, consisting of rows and columns.
View views
Logically related data collection drawn from one table or multiple tables
Sequence sequenc
usersAnalyze using the Analyze command to parse arbitrary tables, indexes, and clusters in the databaseAudit any set auditing options for any database objectAudit system promises to operate auditsBackup any table permissions to back up any tablesBecome user permissions to switch users stateCommit any table permission to submit tablesCreate any cluster permissions for creating clusters for any userCreate any index permissions for creating indexes for any userCreate any procedure permissions for
than 2% to 4%Table updated frequentlyQuery index: You can use the data dictionary view user_indexes and user_ind_columns to view the information for the indexDelete Index: Delete index using DROP INDEX commandOnly the owner of the index or a user with the drop any index permission can delete the indexThe delete operation is not rolled back3. Synonym synonym: Alias an objectUse synonyms to access the same o
Recently in the Oracle Sqlplus Official document, the Sqlplus Security section describes the PUP mechanism. With this, I'll use the following:PUP (Product_user_profile) IntroductionProduct_user_profile is the next table in the system account to provide user-level security restrictions.The PUP setting is not valid for DBA authority users.Pups are only valid for local databases.1. SYSTEM User created Pup:SQLPLUS SYSTEM@ D:\app\Administrator\product\11.2.0\dbhome_1\sqlplus\admin\pupbld.sqlScript Co
Many customers have their own database servers to manage their important data. What if we need to use the data in our project and the customer cannot insert the data to our project database server? One solution is to create some table or view synonyms based on the customer's key data server on the project database server. Here we will introduce how to create a synonym for Oracle Based on the Remote Server View in my project.
1. Create a database link.
How can I achieve bidirectional replacement for string replacement? Recently, we have to replace a synonym. because it is a synonym, it is best to replace it in two directions, for example, "meeting" and "seeing". in a string, either one must be replaced with another. Generally, str_replace can only be replaced in one direction, but cannot be replaced in two directions. I tried to replace the
path error, that is, the execution plan is wrong and manual intervention is required!
4. Create an index for the A1 table
create index ix_a1_type on a1(object_type);
select/*+ use_nl(a2,a1)*/a1.object_name from a2,a1where a1.object_id=a2.object_idand a1.object_type='SYNONYM'
The number of synonym rows returned by this index is 20026, and the number of lead rows below is 1420. Do not make a mistake. The A2
create an index for any user.Create any procedure: Permission to create a stored procedure for any userCreate any sequence permission to create a sequence for any userCreate any snapshot: Permission to create snapshots for any userCreate any synonym permission to create a synonym for any userCreate any table: Permission to create a table for any userCreate any trigger: Permission to create a trigger for an
Oracle Study Notes --- (4)
Thu
Create a user and authorize the user in the System user:Create user usera identifiedBy usera defalut tablespace test;Grant connect, resourceUsera;
1. Synonyms
Private and public
PRIVATE: created by a common user. Only the user who creates the synonym can use it.Prerequisites: normal users have access rights to Scott's table EMP.Connect Scott/tiger;Grant all on EMP to usera;-- All includes select, u
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.