Displays the span from the current time--Calculate the time span: Z When the return value is x days yDeclareLn_day_count number (10);Ln_hour_count number (10);Ln_min_count number (10);Ls_time_sent_last varchar2 (20): = ' 2015-06-07 08:40:20
Max Maximum number auto plus 1Create or Replace function Fun_getmaxlot ( vend in varchar2, domain in VARCHAR2, tag in varchar2) RETURN Varch AR2 as maxval VARCHAR2 (40); NEWIQC VARCHAR2 (40); TT VARCHAR2 (12);
Oracle Basic ConceptsInstance
An Oracle instance (Oracle Instance) consists of a series of background processes (Backguound Processes) and a memory structure (memories structures). There can be n instances of a database.
User
1. java.sql.sqlexception:ora-01000: Maximum number of open cursors exceededStep 1:View the current number of cursors in the database configuration slqplus:show parameter open_cursors;Step 2:To view cursor usage:Select O.sid, Osuser, Machine, COUNT (*
One: Stored procedure with no return valueThe stored procedure is:CREATE OR REPLACE PROCEDURE inch VARCHAR2 inch VARCHAR2) as BEGIN INSERT into VALUES (PARA1, PARA2); END TESTA;Then, call it in Java with the following
This article original for freas_1990, reprint please indicate source: http://blog.csdn.net/freas_1990/article/details/46310145In Oracle, grouping and aggregation must be paired, and "non-grouped fields" must be aggregated, otherwise execution will
There is a SQL code like this:Get query results from C #:There are two parameters in the SQL code, all of which are string types, and the above C # code is the parameter required to generate the Oracle SQL code. The results of the operation are as
(1) The concept of table space and partitioned tableTable Space:is a collection of one or more data files, all of which are stored in the specified table space, but are primarily tables, so called table spaces.Partition table:When the amount of data
Cleaning temporary tablespace in Oracle
Oracle temporary tablespace is mainly used to query and store some buffer data. Temporary tablespace consumption is mainly caused by sorting the intermediate query results. The main functions of temporary
Six Modes of oracle learning getting started Series
Six of oracle learning starter Series
Mode
In the previous article, we learned to record the database structure, memory structure, and processes in the ORACLE database. The space is too large. Take
Oracle exception. oracle Exception Handling
Use oracle System cursor to process data
Instance code:
-- Set serveroutput on;Create or replace procedure split_page_procedure (page_index in number,Page_size in number,Key_word in varchar2)
Common Oracle errors and common oracle errors
1. java. SQL. SQLException: ORA-01000: exceeds the maximum number of opened cursors
Step 1:View the current number of cursors of the database. Configure slqplus: show parameter open_cursors;
Step 2:View
Node eviction caused by heartbeat Network (not instance eviction)
Node eviction of Oracle RAC caused by heartbeat Network (not instance eviction)
Q:Suppose the following scenario: for the four node rac, the heartbeat line uses a m network
Implementation of SQL statements for ORACLE database-based cyclic table creation and cyclic storage Creation
I. OverviewIn actual software development projects, we often encounter the need to create multiple database tables or stored procedures of
Oracle single row Functions
Single-row function syntax
Function_name (column | expression, [arg1, arg2,...])
Parameter description:
Function_name function name
Column name
Expression
Arg1, arg2,... Parameters
Single Row function category:
Character
Statements used to capture table structures in Oracle and statements captured in oracleOracle --------------------------------------- SELECT case when t. COLUMN_ID = 1 then t. table_name end table_name, case when t. COLUMN_ID = 1 then t2.comments
An example of using the sqlldr command to import data to an Oracle database table: sqlldroracleCSV: Comma-Separated Values (Comma-Separated Values) abbreviation. sqlldr is a multi-line text file with Comma-Separated fields. It is short for SQL *
ORACLE-013: kill deadlock process in oracle
In oracle, stored procedures or functions that frequently access packets may cause deadlocks. Scripts of deadlocked objects cannot be run, causing freezing or an exception: too many connections are opened.
Oracle SQL optimization Case 1: oraclesql Optimization
An Alert email is sent from a job in the monitoring alarm log file (Alert). The tablespace TEMPSCM2 cannot expand the temporary segment, indicating that the temporary tablespace has been used up
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