OracleSynonymsOracle synonym for (synonyms) similar to view features, but more powerful. Most database objects in an Oracle database, such as tables, views, materialized views, sequences, functions, stored procedures, packages, synonyms, and so on, can be synonyms. There are 2 main purposes: to simplify object access and improve the security of object access .Here's a quick demo:Sql> Conn Scott/tigerConnected.Sql> CREATE TABLE test1 (ID number);Table
Synonym and index in Oracle, oraclesynonym
Notes:
Oracle-Synonyms-- Use the user name (mode name). Table Name-- Authorization: grant create synonym to test1 (authorized by the system user ))-- PrivateCreate or replace synonym sy_test1 for gcs95.test1;-- TotalCreate public synonym public_sy_test1 for gcs95.test1;/* Priv
Google provides synonym search results to try natural language understanding Technology
Google's official blog today claims that it has used natural language understanding technology to identify synonyms in search. For example, Google search considers "pictures" and "Photos" to be the same in a certain context, taking the Query [pictures developed with coffee] as an example, we can see that the "Photos" in the search results has been bold. This is a
Oracle has ORA-01775: A synonym loop chain problem
1. When you use a program to connect or use plsql to query synonyms, if there is a problem like ora-01775: the loop chain of synonyms.
It is generally because there is a synonym, but there is no corresponding object for the synonym.
2. check whether there is a synonym
index on the corresponding column after the PRIMARY KEY or UNIQUE constraint is defined
Create manually : Users can create non-unique indexes on other columns to speed up the query
To create an index on one or more columns CREATE INDEX Index
on Table (column[, Column]...); To create an index on the column last_name of table employees CREATE INDEX on employees (last_name);
Index created.②, query IndexYou can use the data dictionary view user_indexes and user_ind_columns to view the
Today we implement a simple word breaker, just do the demo using the following functions:1, the participle according to the space, the horizontal bar, the point number to divide;2, the implementation of HI and hello synonym query function;3, to achieve hi and hello synonym highlighting;Myanalyzer Implementation code:public class Myanalyzer extends Analyzer {private int analyzertype;public myanalyzer (int ty
Hit the synonym of the word forest, should be the product of the last century, the word is relatively old, but at least can also use synonyms of the role of the word forest, with the Word2vec to obtain similar function comparison, the two play a comparative effect, see the specific application bar1.First download the TXT,CSDN with synonyms on the link: http://download.csdn.net/download/answerme11/73077712.The contents of the TXT are as follows: each l
See a group of people asked the ordinary user access to the base table problem, the test is as follows:The x$ base table can be accessed by creating a view, and then creating a synonym, authorization, and access to the base table for ordinary users.Of course, ordinary users visit the base table is not reasonable, theoretically not necessary, permission control should also be disallowed. It is not considered reasonable here to experiment on this issue.
colleagues can query the data in the table, but when truncate this table hold ORA-00942: The table or view does not exist
The beginning thought is the table name writes has the question, but later discovered that he deletes is not the table, but is a synonym (synonym)
It is not possible to use truncat for synonyms synonym.
Connected to Oracle Database 11g Ente
greater than 2% to 4%Table updated frequentlyIt is important to note that the creation of an index is also a certain amount of resources, 21 when using the index will speed up the query, the corresponding insertion speed is slow, because also to maintain the indexQuery Index: Use the data dictionary view user_indexs,user_ind_columns to view index informationSELECT Ic.index_name, Ic.column_name,Ic.column_position col_pos,ix.uniquenessFrom User_indexes IX, User_ind_columns ICWHERE Ic.index_name =
smallColumns are not often used as join conditions or are present in the WHERE clauseData queried is greater than 2% to 4%Tables are often updatedNote: The index does not need to be used, just to say that we are querying with name. Speed will be faster. Of course, the speed of the check is fast, the insertion speed will be slow.Because the same time you insert data, you need to maintain an index.5. Querying the IndexAbility to view index information using the data dictionary view user_indexes a
Synonyms in Oracle:Summary: In simple words, the tables of different users in Oracle are generally only available to their own users, and if you do not want to authorize other users to use them in an authorized way, then create the table with the table name in front ofSynonyms, which represents synonyms. In this way, a user-created table B can be used directly instead of a to grant B access to the table.Transferred from: Http://zhidao.baidu.com/link?url=BiYEkVVBEGI9Br7Ltph1lr81f8TQEJgA_q-Omz_wlX
volume.
4. When should I create an index?Do not create an index in the following cases:The table is small.The column is not often used as a join condition or appears in the WHERE clause.The queried data is greater than 2% to 4%Frequently updated tables
Note: indexes are not required, but the query speed is faster when name is used. Of course, the query speed is faster, and the insertion speed will be slow. Because an index must be maintained when data is inserted.
5. query IndexesYou can use th
[Oracle]-[synonym]-public and non-public synonyms [Symptom]: The Sys account creates a public synonym for the t_emp table of the bisal account. The bisal user can access t_emp_syn, but the scott account cannot query, select... t_emp_syn indicates that the table or view does not exist. SQL> select * from t_emp_syn; select * from t_emp_syn * ERROR at line 1: ORA-00942: table or view does not exist [cause]: Sc
Data Type Synonym
Includes data type synonyms for compatibility with SQL-92.
Synonym
Ing to System Data Type
Binary varying
Varbinary
Char varying
Varchar
Character
Char
Character
Char (1)
Character (N)
Char (N)
Character varying (N)
Varchar (N)
Dec
Decimal
Doubl
Oracle reported that DBLink synonym calling during Stored Procedure error: PLS-00201: must declare identifier, dblinkpls-00201
A stored procedure needs to be written a few days ago to access the field of the remote database, so a dbLink is created and a synonym is created:
Create public database link orcl @ dbc connect to orcl identified by orcl USING 'orcl '; create
Pre-recordThis article simply explains how to use the N-gram model combined with Chinese pinyin to make error correction in Chinese, and then introduces the application of the shortest editing distance in Chinese search error correction; Finally, from the dependency tree, we explain how to make long distance error correction (grammar correction), and get a revelation from this method. Using the characteristics of the dependency tree and the ESA algorithm to do the
() {//Analyzer a1 = new Mmseganalyzer ();//not added to the word breaker comes with The Thesaurus//[me [to] [from] [The cloud] [South] [Zhao] [Tong]] [Yang] [district] [division] [Special]//import word-breaker dictionary there is the thesaurus Analyzer a1 = new Mmseganalyzer ("d:\\workspaces\\03
_lucene_analyzer\\mmseg4j-1.8.4\\data ")); [i] [from] [Yunnan] [Zhao]] [Zhao] [Yang] [district] [teachers ' College]//You can expand your own dictionary in the words-my.dic below the data file, such a
1. Knowledge Points: Can be read against the following record screen view, sequence, index, Synonym Sql>--view: Virtual table sql>--View advantages: Simplify complex queries, limit data access (more banks), provide independent data, the same data can be displayed differently sql>-first view: Employee number name annual salary sql> Create VIEW View1 2 as 3 select Empno,ename,sal,sal*12 annlsal from EMP; Sql>--If the display does not have permissions,
Oracle synonym loop chain problem solution
[SQL] 1. First check whether there is a loop synonym: select * from dba_synonyms where table_owner = 'test' and synonym_name
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.