To implement data synchronization in this way by insert into the table data in the current library table Select Remote Library, the Oracle service is configured, and both remote and local services are Oracle
Insert data in the current library?
Oracle offers a number of ways to reduce the time spent parsing Oracle SQL expressions, which can drag down the system's performance when performing complex queries with a large number of execution plans. Now let's take a brief look at several of
Object permissions
Select owner,
TABLE_NAME,
Grantor,
Privilege,
Grantable,
Hierarchy,
' TABLE '/*o.*/object_type
From Dba_tab_privs P
where p.grantee = ' HR '
Order by P.owner, P.table_name;
Role
Select Granted_role, Admin_option,
User-owned System permissions select privilege from dba_sys_privs where grantee= ' & USERNAME ' Union select privilege from dba_sys_privs where grantee in (Select granted_role from dba_ Role_privs where grantee= ' &username ');
set lines 180set pagesize 500col instance_number for 99col module format a10col execs for 999,999,999col etime for 999,999,999.9col avg_etime for 999,999.999col avg_cpu_time for 999,999.999col avg_lio for 999,999,999.9col avg_pio for 9,999,999
Select B.machine, B.program, COUNT (*) from v$process A, v$session b where a.addr = B.paddr and b.username are NOT NULL GRO Up by B.machine, B.program ORDER by COUNT (*) descOrView Session:SELECT * FROM v$session where username are not nullSelect
Linux host 16g memory, modifying Oracle database memory parameters:1, edit/etc/fstab file: For TMPFS line defaults change to defaults,size=12g (pay attention to the format, can not appear error) After modifying the contributing memory parameters,
In my opinion, the view of Oracle is used to map the results of the associated query of multiple tables into a "temporary table", and the view is in real time corresponding to the data in the system tables.We can manipulate a view query just like a
This article transferred from: http://www.cnblogs.com/QDuck/archive/2010/08/11/1797225.html1. View All Users: SELECT * from Dba_users; SELECT * from All_users; SELECT * from User_users;2. View user or role system permissions (System permissions
Today do bootstrap treeview, require input Node ID ID, parent node ID PID, textBut the SQL aliases executed are all uppercase, so the question of how to find the next ORCL alias is lowercaseThe code is as follows:Select t.fun_id "pid", T1. fun_id id,
1. Use dual with Connect by levelCreate Table as Select as ID from by Level100000;However, there is a limit of connect by level, if exceeding the limit, the system will report, "Connect by Level" Memory is not enough, I tried 10 billion data can,
Java code: First define a method that reads a BLOB field from an Oracle database and writes bytes to an output stream. 1 Public Static voidwriteimg (outputstream os) {2 Connection con;3 Try {4Con =connectionfactory.getconnection
--what is an exception--exceptions are errors that may occur during the PL/SQL run. --statement that executes the exceptionException when [Exception] when --abnormal output information. --pre-defined exceptions for OracleCase_not_found Ora-06592
SelectCase when (grouping (GLBM) =1) Then ' total ' else DECODE (Glbm,null, ', GLBM) end GLBM,Case when (grouping (HPZL) =1) Then ' else DECODE (hpzl,null, ' ', Hpzl ') End HPZL,Case is (grouping (SYXZ) =1 and Grouping (HPZL) =0) Then ' subtotal '
The subquery result set in EXISTS is not empty, and the value of the EXISTS () clause is true.The subquery result set in EXISTS is empty, and the value of the EXISTS () clause is false.The subquery result in not EXISTS is non-null, the value of the
1. Create User User1Create user User1 identified by xxxxDefault Tablespace xxxx_tableTemporary Tablespace TempProfile defaultGrant connect to User1;2, Way one: Batch table to empowerSelect ' Grant select on Pposuat_17. ' | | table_name | | ' to
When a case is used primarily to give data to a value that is understandable,--Simple Case functionCase SexWhen ' 1 ' Then ' men 'When ' 2 ' then ' women 'Else ' other ' END--case search functionCaseWhen sex = ' 1 ' Then ' man 'When sex = ' 2 ' Then
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service