Being good is a habit, life is a process, giving up is a kind of wisdom, and its disadvantage is a kind of favor.
A synonym error occurs when the base table or view is deleted.
ORA-01775: Looping chain of synonyms
Cause: through a series of create synonym statements, a synonym was defined that referred to itself.
Action: change one
; SELECT CHARSET (char (0X65)), CHARSET (char (0x65 USING UTF8));
Mysql> SELECT CHARSET (char (0X65)), CHARSET (char (0x65 USING UTF8)); +---------------------+----------------------- ---------+| CHARSET (CHAR (0x65)) | CHARSET (CHAR (0x65 USING UTF8)) |+---------------------+--------------------------------+| binary | UTF8 |+---------------------+--------------------------------+ if the using has been generated and the result string does not conform to the given character set, a police alert i
verification:
1. Create a table under the Gyj User:
Gyj@ocm> CREATE TABLE emp as select Employee_id,first_name,manager_idfrom hr.employees;
Table created.
2. Create a common synonym E
gyj@ocm> create public synonym E for emp;
Synonym created.
Gyj@ocm> select * from E;
employee_id first_name manager_id
----------- -------------------- ----------
198 Don
parse any table, index, and cluster in the database
Audit any set auditing options for any database object
Audit system allows systems to operate audits
Backup any table to back up permissions on any of the tables
Become user's permission to switch users state
Commit any table permission to submit tables
Create any cluster permissions for creating a cluster for any user
Create any index permissions for creating an index for any user
Create any procedure permissions for creating stored procedure
whose return value is a string containing the characters given by the code value of those integers. Null values are omitted.All parameters are concatenated after they are converted to characters.5.char_length (str)The return value is the length of the string str, and the length of the unit is a character.6.character_length (str)Character_length () is a synonym for Char_length ().7.COMPRESS (string_to_compress)Compresses a string.8.CONCAT (STR1,STR2,.
of synonyms1. Simplifying SQL statements2. Hide the name and owner of an object3. Remote objects with a bit of distributed database provide location transparency4. Providing public access to objects2.3.2 Synonyms Classification2.3.2.1 Private synonyms1. Create syntax:CREATE [OR REPLACE] synonym [schema.] Synonym_name---> Synonym namesfor [schema.] object_name---> Replace this
modify table spacesAlter user to modify permissions for usersAnalyze using the Analyze command to parse arbitrary tables, indexes, and clusters in the databaseAudit any set auditing options for any database objectAudit system Operation Audit allowedBackup 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 inde
resource overheadAlter ROLLBACK segment Modify permissions for rollback segmentsAlter sequence modify the owning sequence permissionAlter session Modify permissions for a database sessionAlter SYTEM permissions to modify database server settingsALTER TABLE permission to modify the owning tableAlter TABLESPACE permissions to modify table spacesAlter user to modify permissions for usersAnalyze using the Analyze command to parse arbitrary tables, indexes, and clusters in the databaseAudit any set
episode resource overheadAlter ROLLBACK segment Modify permissions for rollback segmentsAlter sequence modify the owning sequence permissionAlter session Modify permissions for a database sessionAlter SYTEM permissions to modify database server settingsALTER TABLE permission to modify the owning tableAlter TABLESPACE permissions to modify table spacesAlter user to modify permissions for usersAnalyze using the Analyze command to parse arbitrary tables, indexes, and clusters in the databaseAudit
permissions for usersAnalyze using the Analyze command to parse arbitrary tables, indexes, and clusters in the databaseAudit any set auditing options for any database objectAudit system Operation Audit allowedBackup 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 per
comparison: The statements that are currently executed and those in the shared pool must be identical.For example: SELECT * from EMP;And each of the following is different SELECT * from EMP;Select * from EMP; SELECT * from EMP;B. the object that the two statement refers to must be exactly the same: User Object Name How to access jack sal_limit private synonym Work_ city public synonym plant_detail Pu
SELECT * from EMP;
Select * from EMP;
SELECT * from EMP;
B. Two statements refer to objects that must be identical, for example:
User
Object Name
How to access
Jack
Sal_limit
Private synonym
Work_city
public synonym
Plant_detail
public synonym
Jill
Sal_limit
Pr
Synonyms for OracleSynonyms are an alias for schema objects such as tables, indexes, and views. As with views, synonyms do not occupy any real storage space, only the description of their definitions in Oracle's data dictionary. When you use synonyms, Oracle translates them into the corresponding object names.Synonyms in Oracle are divided into the following two categories:1. Public synonyms在数据库中所有用户都可以使用2. Private synonyms由创建它的用户私人拥有。不过,用户可以控制其他用户是否有权使用自己的同义词。Create synonymsThe syntax for creat
. If not specified, the current user name and password are used to log on to the remote database.2. Delete the database link statement:DROP [public] DATABASE LINK Zrhs_link3. View the dblink you have createdSelect Owner,object_name from dba_objects where object_type= ' DATABASE LINK ';References to 4.dblink:[User.] table| [Email protected]Such as:SELECT * from [email protected]_link;SELECT * from [email protected]_link;5. Create synonyms:For frequently used database links, you can create a local
Tags: oracle synonym creationFirst, you need to create a synonym permission for the user:Sql> Grant create synonym to Jhchen;Grant succeeded.To create a synonym syntax:Create synonym name for owner. Object nameNeed to login with Jhchensql> create
remote database. If not specified, the current user name and password are used to log on to the remote database. 2. Delete the database link statement: DROP [public] DATABASE LINK Zrhs_link 3. View the dblink you have created Select Owner,object_name from dba_objects where object_type= ' DATABASE LINK '; References to 4.dblink: [User.] Table|view @dblink Such as: SELECT * from [email protected]_link; SELECT * from [email protected]_link; 5. Create synonyms: For frequently used databa
is activated, the CHAR () result will become NULL.◆ CHAR_LENGTH (str)The return value is the length of the str string, measured in characters. A multi-byte character is counted as a single character. For a five-Byte Character Set, LENGTH () returns 10, while CHAR_LENGTH () returns 5.◆ CHARACTER_LENGTH (str)CHARACTER_LENGTH () is a synonym for CHAR_LENGTH.◆ COMPRESS (string_to_compress)Compress a string. This function requires that MySQL has been comp
you store are less than 20 characters, they are stored according to the actual length.
2. CHAR is more efficient than VARCHAR2.
3. Currently, VARCHAR is a synonym for varchar2. The industry standard VARCHAR type can store null strings, but oracle does not, although it reserves the right to do so in the future. Oracle has developed a data type VARCHAR2, which is not a standard VARCHAR. It changes the feature that can store NULL strings in the varchar
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.