Oracle Database provides the synonym management function. Oracle synonyms are aliases of database solution objects. They are often used to simplify object access and improve object access security. In Oracle databases, most database objects, such as tables, views, synonyms, sequences, stored procedures, functions, JAVA classes, packages, and so on, can be defined by the database administrator as needed. Using Oracle Database
The Oracle database provides the synonym management function for the creation of Oracle synonyms. Oracle synonyms are aliases of database solution objects. They are often used to simplify object access and improve object access security. In Oracle databases, most database objects, such as tables, views, synonyms, sequences, stored procedures, functions, Java classes, packages, and so on, can be defined by the database administrator as needed. Using Or
--Title:sql Server2005 synonym use-author:wufeng4552-Date:2009-10-301.Synonym the conceptSynonym (synonym) is a new feature of SQL Server 2005. You can easily understand the aliases of synonym for other images.Language methodCREATE synonym [Schema_name_1.] Synonym_name for {
even if you pay a cut, there aren't many companies willing to take you in.See here, I do not say anything major, I take an example said: A classmate is Tsinghua University, B and A is a good friend, b even the university has not been admitted, and finally found a learning technology training school to train java,b classmate very hard, because he knows a such friend, is his forward momentum, So in the train
Oracle (1) --> detailed description of database objects (Text explanation, first of all a small understanding ~), Oracle details---- Database object: a set of logical structures ----1. Synonym: alias of an existing object/*Purpose:Simplify SQL statementsHide the Object Name and ownerProvide public access to objectsCategory :*/-- Public synonym: it can be accessed by all database users. When the local object
Tags: lap update set for TIME range Dex minimum PreMany applications require a unique number to be used as the primary key value, so you can build code in your application to handle this requirement, or you can use a sequence to produce a unique number. If you want to improve the performance of some queries, you should consider creating an index, or you can enforce uniqueness on the collection of columns or columns with an index. You can use synonyms to provide an alternative name for the object
1. Synonyms:
In a distributed database environment, to identify a database object, you must specify the host name, the server name, the owner of the object, and the object name. This undoubtedly increases the access difficulty of the visitor. You can create synonyms for database objects to provide a simple, unique name that identifies the database object in order to use the database object for different users.
For example, let's say that we have a table table in the database for a user, so whe
Questions raised
In my new job, I faced the problem of archiving the tables that were created in the product database, because as the database grows, it needs to be moved now. At the same time, these archived tables are used for several tasks and are invoked in the application's code. Moving them in this way is a very complicated process. I want to find a way to minimize the amount of work that developers have to do, because they have very limited time. Can you tell me the best way to file the
Tags: sel alt How much value technology share Mys string into intFirst create a tableCREATE TABLE classmate ( ID int, CNAME VARCHAR (5), age INT, math double, 中文版 double, Nature DOUBLE);Fill in the table with the dataINSERT into classmate values (1, ' Wang San ', 12,34,55,12), insert into classmate values (2, ' John Doe ', 15,67,45,15); INSERT INTO
synonymous names
1. Introduction
Just like using a view to perform operations without directly relying on a base table, you can use a synonym name to achieve this purpose. Unlike a view, a synonym name can be applied not only to table naming, but also to views, sequences, stored procedures, functions, and packages, therefore, it is widely used. The inconvenience of using a synonymous name is that it cannot
Today, let's take a look at how to manage database objects in the orcale database.
I. Synonyms
1. Solution
The solution is a collection of database objects. The solution contains various objects (tables, views, indexes, synonyms, sequences, database connections, etc ).
Generally, a user corresponds to a solution. Of course, the user can have other solutions.
2. Synonyms
Synonyms are the aliases of solution objects. They are commonly used to simplify objects and improve Object Access
----Database objects: A collection of logical structures----synonyms: Aliases for existing objects/*function:Simplifying SQL statementshide the name and owner of an objectprovides public access to an objectCategory: */--public synonym: can be accessed by all database users, local objects take precedence when local objects have the same name as public objectscreate public synonym syn1 for scott.emp;select *
You have been using the youdao dictionary online for nearly half a year. I remember the first time I used the youdao Dictionary (online version, which is usually referred to below) or because a classmate typed "dict.youdao.com" in the address bar of my PC browser ", at that time, I thought this domain name was very memorable, so I hit it when I encountered a new word in English in the days that followed until now. In my previous use, I simply used it
word breaker and filter to form a" pipe ", and the text flows through the pipe into the smallest unit that can enter the index, so a standard parser consists of two parts, one is the word breaker tokenizer, It is used to divide the text into the smallest unit that can enter the index, according to the rules. The other is Tokenfilter, its main function is to cut out the word for further processing (such as removing sensitive words, English capitalization conversion, single plural processing) and
, privilege, grantable, hierarchy
FROM user_tab_privs_recd
Order by table_name, privilege;
By querying user_col_privs_recd, you can check which columns a user has granted the object privileges.
Example: Query user_col_privs_recd
SELECT owner, table_name, column_name, grantor, privilege, grantable
FROM user_col_privs_recd;
4. Use object privileges
After a user is granted the Object Privilege, the user can use this privilege to execute a specific task,
For example, steve has the SELECT privilege
Tables are divided into system tables and user tables.Database objects
Tables (basic storage objects, composed of rows and columns), views (logical subset data obtained from one or more tables), sequences (unique serial numbers automatically generated), index (improves query performance), synonym (simplified access to data objects) standard naming rules
Table Name and column Name:
The first symbol must be a letter.
1-30 characters
Can only contain A-Z
from User_sequences5, Synonyms: Object alias, do not occupy spacePurpose: Simplifies SQL statements, hides object names and owners, provides location transparency for remote objects, and provides public access to database objects.Category: Private synonyms, public synonyms1) Private synonym: Must have create [any] synonym permission only by current mode user accessCreae
50. SLS is a private synonym for the SH. SALES table.The user SH issues the following command:Drop synonym sls;Which statement is true regarding the above SQL statement?A. Only the synonym wocould be dropped.B. The synonym wocould be dropped and the corresponding table wocould become invalid.C. The
iSQL * Plus to check whether the "business" table has changed.
SQL> select * from business;
4. delete a view
(1) Use the Enterprise Manager to delete the "business_view" view.
(2) Use the Enterprise Manager to delete the "card_view" view.
(3) use SQL * Plus or iSQL * Plus to delete the "consume_view" view.
SQL> drop view consume_view;
(4) use SQL * Plus or iSQL * Plus to delete the "insurnce_view" view.
SQL> drop view insurance_view;
5. Create a synonym
= 1521))) (Connect_data = (service_name = ORCL))) ';--Database parameters Global_ Name=true requires that the database link name is the same as the remote database name. The database global name can be isolated with the following command-select * from Global_name;3. Query data:[C-sharp]View Plaincopyprint?
--querying, deleting, and inserting data is the same as manipulating the local database, except that the table name needs to be written as "table name @dblink Server".
Select xxx
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.