Oracle DatabaseRelatedSynonymSome of the knowledge is what we will introduce in this article. First, let's take a look at a statement, as shown below:
Create synonym table_name for user. table_name;
The first user_table and the second user_table can be different.
In addition, if you want to create a synonym for a table on a remote Database, you must first create a Database Link Database connection) to expan
completed.
SQL> exec dbms_logmnr.start_logmnr (options => dbms_logmnr.dict_from_online_catalog );
PL/SQL procedure successfully completed.
Let's take a look at the related views used by the LOGMNR tool: SQL> set pages 100SQL> col comments for a40SQL> select * from dict t where t. table_name like '% LOGMNR % ';
TABLE_NAME COMMENTS parameter values $ paisynonym for V _ $ parameters $ LOGMNR_PARAMETERS Synonym for V _ $ parameters $ LOGMNR_DICTIONARY
;If we just want to know what a user is doing with a table, you can get it from the following SQL query, which can get all the work the user db_zgxt on the table SB_DJJL.Sql> SELECT Sql_redo from v$logmnr_contents WHERE username= ' db_zgxt ' and tablename= ' SB_DJJL ';It should be emphasized that the results of the analysis in the view v$logmnr_contents only exist during the life of the session we are running ' DBMS_LOGMRN.START_LOGMNR '. This is because all Logminer storage is in PGA memory, al
where t.table_name like '%logmnr% ';-See all LOGMNR related views table_name COMMENTS-- ------------------------------------------------------------------------------------------------------------gv$ Logmnr_callback synonym for gv_$logmnr_callback gv$logmnr_contents synonym for gv_$logmnr_contents GV$LOGMNR_ DICTIONARY synonym for Gv_$logmnr_dictionary gv$logmnr
Original: Method of querying or performing additional database operations in SQL 2005Summary:If you want to query the data of another data server on one database server, how do you do it? What if you want to query data between different databases on the same data server?1.Synonym2.openquery3.Linked ServersServer object-->linked servers--> servertype Select SQL Server, select "be made using this security context" in securityEnter your user name and password, using:SELECT * FROM [Galaxy]. DataWare
LOGMNR-related views table_name COMMENTS-------------------------------------------------------------------------------------------------- ------------gv$logmnr_callback synonym for gv_$Logmnr_callback gv$logmnr_contents synonym for gv_$logmnr_contents gv$logmnr_dictionary Synony M for gv_$logmnr_dictionary gv$logmnr_logfile synonym for Gv_$log
Autocommit = {0 | 1} sets whether MySQL transactions are automatically committed. 1 indicates immediate submission, and 0 indicates explicit submission. Global or session is a dynamic variable that can be used in the configuration file (but not in versions earlier than 5.5.8. Automatic_sp_privileges = {0 | 1} sets whether the MySQL server grants the EXECUTE and alter routine permissions on the created storage ROUTINE to the creation of the storage ROUTINE, the default value is 1 (grant the two p
t.table_name like '%logmnr% ';-See all LOGMNR-related views
TABLE_NAME COMMENTS
------------------------------ --------------------------------------------------------------------------------
Gv$logmnr_callback synonym for Gv_$logmnr_callback
gv$logmnr_contents synonym for Gv_$logmnr_contents
Gv$logmnr_dictionary synonym for Gv_$logmnr_dictionary
Gv$logmnr_logfi
------------------------------ --------------------------------------------------------------------------------Gv$logmnr_callback synonym for Gv_$logmnr_callbackgv$logmnr_contents synonym for Gv_$logmnr_contentsGv$logmnr_dictionary synonym for Gv_$logmnr_dictionaryGv$logmnr_logfile synonym for Gv_$logmnr_logfileGv$logm
analysis disappear.Finally, use the procedure DBMS_LOGMNR. END_LOGMNR terminates the log parsing transaction, at which time the PGA memory area is cleared and the results of the analysis are no longer present.5. View Logminer Tool Analysis ResultsSql> SELECT * from Dict t where t.table_name like '%logmnr% ';-See all LOGMNR related viewsTABLE_NAME COMMENTS------------------------------ --------------------------------------------------------------------------------Gv$logmnr_callback
cleared and the results of the analysis are no longer present.5. View Logminer Tool Analysis Results1. sql> SELECT * from Dict t where t.table_name like '%logmnr% ';-See all LOGMNR related views2. TABLE_NAME COMMENTS3.------------------------------------------------------------------------------------------------------------- -4. Gv$logmnr_callback synonym for Gv_$logmnr_callback5. gv$logmnr_contents synonym
superid order by superid;
/* ------ Method two ------*/Select distinct superid, ltrim (first_value (ID) over (partition by superid order by l desc ),';')From (Select superid, Level L, sys_connect_by_path (ID, ';') IDFrom (Select superid, ID, superid | rownum parent_rn, superid | to_char (rownum-1) RnFrom Test)Connect by prior parent_rn = rn);
-- The following example adds the numbers on each digit of an integer. Through this example, we can understand connect by again.
Create or replace functio
;
/*************************************** **************************************** ******************************************* **************************************** ***The following is an error that the author mentioned in this example about how SQL solves the directed graph problem.Select * from fares connect by prior arrive = depart start with depart = 'lhr ';Error:ORA-01436: connect by loop in user dataYou can use the nocycle parameter of conne
ORA-00980: synonymtranslationisnolongervalid, ORA-00980: synonym conversion no longer valid
ORA-00980: synonym translation is no longer valid, ORA-00980: synonym conversion no longer valid
ORA-00980: synonym translation is no longer valid ORA-00980: synonym conversion i
Iv. synonyms(a) What are synonymsA synonym is essentially an alias for a specified schema object. Synonyms provide a degree of security by masking the names and owners of objects and providing location transparency for remote objects in a distributed database. At the same time, the use of synonyms is better, which reduces the complexity of SQL statements of database users. Synonyms allow a base object to be renamed or moved, at which point a
--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 {
CREATE VIEW statement, Oracle creates the view even if there is a series of cases.The query for a view definition references a table that does not exist.The query for the view definition references columns that are not valid in an existing table.The owner of the view does not have the required permissions.In these cases, Oracle only checks for syntax errors in the CREATE VIEW statement. If the syntax is correct, the view is created and the definition of the view exists in the data dictionary. H
Oracle (1) --) Detailed description of database objects (Text explanation, first of all a small understanding ~)---- Database object: a set of logical structures ---- 1. Synonym: alias of an existing object/* function: simplify the SQL statement to hide the Object Name and provide the owner with a public access classification for the object: */-- public synonym: it can be accessed by all database users. Whe
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
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.