In practice, you often encounter the need to periodically delete data that has expired and release server resources. For example, we define a timer task, which starts at 2 o'clock in the morning, and this task is to delete data from 1 months ago to
Example (Instance)Database startup after the impression in memory, the management database runs normally. The ORACLE_SID is identified in the OS as a instance_name identifier in the DB, consisting of the System Global area + Background Process.To
First, install the ODAC and configure the environment variablesAdd Reference "Oracle.dataaccess" to your projectCodeUsing Oracle.DataAccess.Client;public void Execute (){OracleConnection conn = new OracleConnection (connstring);Try{Conn. Open
1. Flash BackAnnotation: Delete "t_spc_room" table, but no commit can be restored back with the following command.flashback table Mw_app. T_spc_room to before drop2. Handling special Charactersannotations : When inserting special with &, Oracle
A: First talk about the optimization of the database1. Max functions are slow to run; now replace them in the following wayA; the use of the Max function; Get the latest operation time of a row of employee records-----------slow;SELECT *From [email
April 9, 2015 cold weatherTable Gw_log is designed as follows:Name Type NullableDefaultComments--------------------------------------------------ID VARCHAR2 ( -) Message ID service_id VARCHAR2 ( -) Y Service ID req_timeDATEY Request Time
I. Business ScenariosBusiness processes require a comparison of writes and updates, so there are both the original table and the history table.ID uniqueness in the request table, and ID Association of two tables, and subsequent possible database
Reprint: http://database.51cto.com/art/201009/228094.htm1. Inner connection (natural connection)2. External connection(1) Left outer connection (the table on the left is unrestricted)(2) Right outer connection (no restriction on the right table)(3)
The acid Characteristics of Oracle Transactions1 , Atomic (atomicity)The atomicity of a transaction means that all the operations contained in a transaction are either done or not, ensuring that the database is consistent.For example: A account to
directly on the sourceOne, Oracle storage process.Create or replace procedure proc_get_th (I_hth in Varchar2,O_ret out Sys_refcursor)IsBeginFor V_rec in (select ggd_id,th from Gms_ggd_zt where hth=i_hth)LoopInsert into tmp_gms_plan_th
Reprinted from: http://blog.csdn.net/mal327/article/details/6458907Performed by Oracle User:$ sqlplus system/manager @ file.sql Execute SQL script file$ sqlplus System/manager Login sqlplus, using the system user$ sqlplus/nolog starts Sqlplus in a
The use of the--oracle trunc () function/************** Date ********************/1.select trunc (sysdate) from dual--2011-3-18 today's date is 2011-3-182.select trunc (sysdate, ' mm ') from dual--2011-3-1 returns the first day of the month.3.select
PL/SQL webpage access (get or post), plsql
When we develop a plsql program, it is inevitable that we sometimes access data from some external websites. At this time, we need to use the utl_http package.
Before using the utl_http package, check
Oracle set command, oracleset
SQL> set colsep ''; //-domain output SeparatorSQL> set echo off; // displays each SQL command in the start script. The default value is on.SQL> set echo on // set whether to display the statement when running the
Oracle redo log maintenance and oracleredo log
Environment
OS: Red Hat Linux As 5
DB: 10.2.0.1
1. add the log group alter database add logfile group 4 ('/u01/app/oracle/oradata/logs L/redo04.log') size 50 m;
2. add a log group (specified log
No response to oracle login solution (oracle4612267 patch installation tutorial)
At about noon today, I suddenly received a text message prompting me that the company's software had not produced a ticket for a long time. The first reaction was that
View the SQL Execution history of an Oracle Database
Method 1: Use the LogMiner Tool
Advantage: the log content can be fully mined to find all SQL statements that have been executed
Disadvantages:
If archiving logs are not enabled, you can only mine
How to connect a database with the same name on different ip addresses when connecting oracle with plsql
Sometimes, in work, the database name is the same through plsql, but on different ip hosts, how can we differentiate connections through plsql?
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