Local Network Service name Configuration:
In the oracle \ oracle90 \ Network \ admin \ installation directory of the client, there is a named file named tnsnames. ora, where the local configuration is stored. when the client is appliedProgramWhen a
After a LAN, telephone line, or broadband connection is used to establish a connection between the client and the database server, or a distributed connection is established between multiple database servers, if the network fails, the normal
Toad 10.6 queries the Oracle 10g tablespace. The following message is displayed on the toad return page:
Selectprivileges on following are required: dba_data_files, dba_free_space, V $ temp_space_header, V $ temp_extent_pool,
SET transaction read only is actually a means of implementing isolation (isolation) in four major acid databases, which is used to set the read consistency of data at a certain time point, that is, no matter how the data of other transactions is
When creating an Oracle database, we use dbca in most cases, which is simple, convenient, and more automatic. today we will try to create a database manually using the command line method, it has a special flavor. Oracle software version: 10gr2
Rollup literally means to roll to, used in group by can play a cumulative sum role:
If no rollup exists, the following query sums the groups by department_id and job_id:
Select department_id, job_id, sum (salary) from employees where
In addition to add_months, you can also use interval:
Connected to Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 connected as xxpo SQL> SQL> select to_char (sysdate, 'yyyy/MM/DD hh24: MI: ss') now from dual; now -----------------
Three default users syschange_on_install [as sysdba] systemmanager scotttiger create user create user t0nsha identified by t0nsha; system permission grant create session to t0nsha; grant create table to t0nsha; grant unlimited tablespace
We often use hint in the SQL statement optimization process. Here we summarize the common Oracle hint usage in the SQL optimization process:1./* + all_rows */It indicates that the overhead-based optimization method is selected for the statement
-- View all tables of the current user in the Oracle database
Select table_name from user_tables;
-- View All tables under all users in the Oracle databaseSelect User, table_name from all_tables;
-- View all user columns in the Oracle
The problem is: change the name of the employee in the employee information table to another one. For example, change Zhang to Wang and only change the name without changing the name:
Update table name set field name = 'King' | substr (field name, 2
Oracle query operation considerations
1. Fuzzy searchTo use the wildcard % and _ as character values, you must use the Escape Character After escape. For example:-- Query records starting with 'pt _ 'in the g3e_username FieldSelect * From
Timed_statistics parameter: used to determine whether to collect related time parameters. True indicates collection. If this parameter is set to false, data cannot be collected in the event-related view.SQL> show parameter timed_statistics;Name type
/*************************************** ***************************/
-- Query table space parameters
Select tablespace_name, min_extents, max_extents, pct_increase, status from dba_tablespaces; -- query data file information
-- Autoextensible:
Two effective methods for creating Oracle dblinkTwo different database servers read data from one user on one database server from another database server. In this case, you can use dblink.
In fact, dblink is similar to the view in the database.
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--># Region/* Backup and restoration operations */
///
Select a. Sid, A. blocking_session, A. last_call_et, A. event,Object_name,Dbms_rowid.rowid_create (1, data_object_id, rfile #, row_wait_block #, row_wait_row #) "rowid ",C. SQL _text, C. SQL _fulltextFrom v $ session A, V $ sqlarea C, dba_objects, V
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