Start --> Oracle InstallationProgramAccording to --> net configuration Assistant
Select Listener Configuration --> next --> Add (generally, the server configuration may cause problems, so Add a new listener) --> Add a listener name (the name of the
The table size has two meanings. One is the number of physical spaces allocated to a table, regardless of whether the space is used or not. You can query the number of bytes as follows:Select segment_name, bytesFrom user_segmentsWhere segment_type =
Declare
Cursor
Cur_m_shohinhotel
Is
Select
H. seq, H. usedate,To_char (to_date (
'
2006/12/12
'
)
+
H. usedate
-
1
,
'
Yyyymmdd
'
)
As
Useday,H. cyclcd, H. mealtypecd, H. roomcategorycd, H.
Self join is a commonly used connection method in SQL statements. Using Self join, you can treat one image of your table as another table, so that you can get some special data.
When should we use a self-connection? Let's take a look at the
Iii. SQL Optimization
Database optimization is mainly performed by DBA, and the optimization is divided into many steps. Based on experience, the first thing to adjust is
Program A bad SQL statement written by a member can cause the entire Oracle
Context: saasreportprocontext CTX = factory. saasreportprocontextfactory. getsaasreportprocontext ();
There are three parameters: String reportname, string module, string type
In LINQ to SQL
VaR query = from o in CTX. reportorWhereO.
Blob refers to the writing of a binary large object, that is, an English Binary large object;Clob refers to a large character object, that is, written by the English character large object.Therefore, these two types are designed to store a large
If the system data is not updated, check the Oracle scheduled task. It is estimated that the task is not executed.
The next_date is changed to 4000/1/1, and the broken is selected.
Select * From user_jobs: the number of failed tasks of this task
Let's popularize the process of using expdp to back up the Oracle database.
Export the database on server a (centos): (all SQL statements that can be executed in server sqlplus can be remotely executed in client PLSQL. Can sqlplus be operated
The scenario is as follows:
-- Creation type) Create Or Replace Type list_obj Is Table Of Number ; -- Create Table Structure Create Table Test (name Varchar2 (30 ) Primary Key Check (Regexp_like (name, ' ^ ([A-Z] | [0-9] |
You need to back up the Oracle database automatically on a regular basis and want to use the simplest tools and methods.
Timing: Use the scheduled tasks that come with windows to complete.
Backup: Use the Oracle export tool export. The command
Set database startup instance
Use operating system authentication to log on
Rebuilding Scott user environment
Switch to database DBA
Specify a separate tablespace for Scott.
C: \ Documents ents andSettings \ Administrator>Set oracle_sid =
Method 1
Step 1: log on to SQL/plus to execute the command (no sequence is available)
Set Time on; (Note: Enable time display)
Set autotrace on; (Description: Enable Automatic Analysis Statistics and display the running results of SQL statements)
In the Oracle PL-SQL, left and right connections are implemented as follows
View the following statements:
This SQL statement uses the right connection, that is, the other side of the "(+)" is the connection direction. All records on the right
Not supported: 24:00:00 formatApril 22 0:00:01 is (a bit depressing)
1. date to character:
Select sysdate, to_char (sysdate, 'yyyy-mm-dd hh24: MI: ss') from dual
2. character to date:
Select to_date ('2017-03-13 21:15:37 ', 'yyyy-mm-dd hh24:
Oracle official reference: PL/SQL language referenc-> 9 PL/SQL trigger
Reasons to use trigger:
■ Automatically generate calculated column values■ Log events■ Gather statistics on Table Access■ Modify Table data when DML statements are issued
When Oracle is uninstalled, it cannot be deleted. I want to reinstall the system. In my work, I have summarized the following methods and hope to help you.Note: the path of the oracle source program must be an English path; otherwise, an error
How to remotely determine
Oracle
DatabaseOf
InstallPlatform
Http://hi.baidu.com/dingqiang123/blog/item/1bdeccee9d9799f7b3fb9535.html
Select * from v $ version;
View table space usage
Select sum (bytes)/(1024*1024) as free_space, tablespace_nameFrom
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