Oracle timer, once set, the server reboot does not affect the execution of the Oracle timer (scheduled daily execution),Begin Sys.dbms_job.submit (Job: job, what = ' check_err; ', next_date = trunc (sysdate)
Create/delete Table spaces
Created: Create tablespace USERS datafile '/oracle/oradata/mytest/tsuser.dbf ' size 500M autoextend on next 10M maxsize unlimite d extent management local; Delete: Drop tablespace USERS including CONTENTS and datafiles;2.
Line 1:Create OR REPLACE PROCEDURE is an SQL statement that notifies the Oracle database to create a stored procedure called skeleton, overwriting it if it exists;Line 2:The IS keyword indicates that a PL/SQL body is followed.Line 3:The BEGIN
First, the demandUser answer, a total of 3, must be 3 questions are completed to submit.Objective: To query the user answered several questions correctly, answered several wrong questions. (Of course, you can only find the correct number of
Transferred from: http://www.cnblogs.com/tippoint/archive/2013/04/07/3003810.htmlIn some cases, we need to modify the host name of the Oracle database that is already installed. Here are the steps1. Modify/etc/hostsSu-Vi/etc/hosts2. Modify NetworkVi/
1. Basic StructureCREATE OR REPLACE PROCEDURE Stored procedure name(Parameter 1 in number,Parameter 2 in number) isVariable 1 INTEGER: = 0;Variable 2 DATE;BEGINEND Stored Procedure Name2.SELECT into STATEMENTStoring the results of a select query in
Inside connection: Is our normal table connection, display ID match dataSELECT * fromA,bWHEREThe a.aid=b.bid only takes out the matching data. Outer joins: Divided into left and right connectionsLeft join: First remove the left table (a table) data,
One, the current timeUse the Sysdate function directly in SQL to represent the current time.So, using the current time, we can get the time information specified before and after the current time.1.1 Plus SubtractionSelectSysdate-1 fromdual;-- --
Reprint: http://www.linuxidc.com/Linux/2008-02/11238.htmThe first few days after the OCI connected to the database problem, with the Oracle's own example test, can read the data (all in English), it is safe to go to develop other modules. These days
1. Character data type (Char,varchar2,long)CHAR: To store an alphanumeric value, the column length of this data type can be between 1 and 2000 bytes. If not specified, it consumes one byte by default, if the user enters avalue is small at the
Add to Oracle User's ~/.bash_profilenls_lang= "Simplified Chinese" _china. Zhs16gbkExport Nls_langThen save the exit,SOURCE ~/.bash_profileLogin again Sqlplus garbled on the lost.Note: The specific values of Nls_lang are modified according to the
In order to facilitate learning and testing, all of the examples are created under the Oracle's own user Scott.Note: The red Order by in the title indicates that you must bring an order by when using this method.Rank ()/dense_rank () over (partition
Oracle tables cannot be DDL or stored in a stored procedure.
In the process of data migration, we will face two common hang scenarios:
1. You cannot modify or increase the length of a field in a table.
2. stored procedures cannot be
The data pump export library is used in the Linux operating system.
1. create the physical directory dp_dir on Linux to store the database. dmp file;
Log on as a root user, switch to an oracle user, and create a physical directory as follows:
[Root @
Export oracle comments and oracle comments
Indicates that a user has a comment + Table comment + field details + field comment
select ATC.OWNER, atC.TABLE_NAME, utc.comments, ATC.COLUMN_NAME, ATC.DATA_TYPE,
The SQL query result set is sorted by specified conditions.
Oracle considers null to be the largest.
Sort in ascending order. By default, the null value is placed behind.
Sort in descending order. By default, the null value is ranked first.
There
How Does Oracle Randomly Read values from a specific combination?
Here, we will use the DBMS_RANDOM package and the case when statement as follows:
1. Use the DBMS_RANDOM.RANDOM function to randomly generate a value and then modulo the value. If we
Create a tablespace in an Oracle database and an oracle database
-- Create a tablespace in the Oracle database
Create tablespace new_taspace
-- Tablespace name
DATAFILE 'd: \ NEWTABLESPACE. dbf' -- the data file and location associated with 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