The Oracle stored procedure consists of three parts: Process Declaration, execution process, and stored procedure exception.
Oracle stored procedures can contain parameter stored procedures and parameter stored procedures.
I. No parameter program
1. Description of the pseudo column on the official website
From: 11gR2
Http://download.Oracle.com/docs/cd/E11882_01/server.112/e17118/pseudocolumns007.htm#SQLRF50953
Foreach row, ORA_ROWSCN returns the conservative upper bound system change number (
It is important to back up your database when database tables are lost or damaged. In the event of a system crash, you must be able to restore as much data as possible from your table to the State at the time of the crash. This document describes
Recovery Type1. Time-based recovery2. sequence-based recovery3. SCN-based recovery
Recovery Process:1. mount the database2. Allocate multiple channels for concurrency3. Restore all data files4. Restore the database with until time, until sequence,
By default, MongoDB does not need to enter the User and password, so the client can log on. This security problem is serious.
There are also many examples on the Internet, but there are also many details that many people have not noticed me here by
NEXT_DAY (date, char): returns the date of the first day of the week (specified by char) after the specified date (specified by date). char can also be 1 ~ Replace 7. 1 indicates Sunday.
Duzz $ scott @ orcl>SelectSysdate, to_char (sysdate,'Day')
Select * From (Select RowNum field_ByName, d. * From (SELECT B. *, c. loginaccount from jitums. TB_READERS B, JITUMS. tb_rd_account c where B. reader_id = c. reader_id) d Where RowNum = 1;
Select * From (Select RowNum field_ByName, B. * From
Two methods to import nginx logs to hive
1. Create a table in hive
Create table apachelog (ipaddress STRING, identd STRING, user STRING, finishtime STRING, requestlineString, Returncode INT, size INT, refererString, AgentString) ROW FORMAT
1. Configure the listener for the Oracle server Modify the listener. ora and tnsnames. ora files in the /network/admin/directory. WhereThe listener file is roughly as follows:# Listener. ora Network Configuration File:/oracle/app/product/10.1.0/db_1/
During this time, a configuration library needs to be imported to different people. After each person is imported to the database, all the tables in the Database need to be cleared. If you want to import tables one by one, it is very troublesome,
This article mainly explains the problem of MySQL optimization in the CentOS system, and describes some basics of MySQL optimization. MySQL optimization is divided into two parts. Physical server hardware optimization and MySQL optimization.
The
Problem:
"Ora-01045: user system lacks create session privilege; logon denied" appears when you log on with PL/SQL ".
Cause: the user has no permission to create a session.
In Google, find the following description:
What does "ORA-01045: user
Symptoms: the Database is open or can be connected to the Database from sqlplus. When you connect to the Database from the web, you can find the Database Instance, Listener, agent Connect to Instance is normal, but clicking 'database' cannot enter
1. parameter description
Generally, the default value of db_block_size is 8 KB. From this perspective, the block size of the database is the same. However, Oracle can configure Multiple Block Sizes.
SYS @ anqing1 (rac1)> show parameter
1. Install XtraBackup
If it is a 32-bit system, just put the content of xtrabackup0.9.zip in the bin directory of mysql.
You can also compile the database together. Take 5.0.88 as an example:First download the source code:
The task is very simple. Copy the virtual machines in Beijing to a machine on the site, let them run, and simulate the real environment for users to perform exercises. In this case, if the production database fails, O & M personnel can switch
1. Switch the server archive mode. skip this step if the archive mode is already used:% Sqlplus/nolog (start sqlplus)SQL> conn/as sysdba (connect to the database as DBA)SQL> shutdown immediate; (close the database immediately)SQL> startup mount
PostgreSQL lists SQL statements in progress
SELECT
Procpid,
Start,
Now ()-start AS lap,
Current_query
FROM
(SELECT
Backendid,
Pg_stat_get_backend_pid (S. backendid) AS procpid,
Pg_stat_get_backend_activity_start (S. backendid) AS start,
SID is used to distinguish different instances of the same database on the same computer. SID and Oracle_HOM are hashed together to allocate a unique key name to SGA.
The ORACLE database server consists of two parts: the physical database and the
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