1. The following statements are used to query which objects are locked:
The code is as follows
Copy Code
Select object_name,machine,s.sid,s.serial#From V$locked_object l,dba_objects O, v$session swhere l.object_id =
How to turn on/off Oracle archiving
If it is a OPS/RAC environment, you need to first comment out Parallel_server = True, and then perform the following steps, and then restart with this parameter
1, open the archive
A. Close the database
One login Sqlplus
Sqlplus username/Password @ database instance as login role;
such as: User sys (password 123) to SYSDBA role Login Database Oracl, we can enter: Sqlplus sys/123@oracl as SYSDBA;
This type of login will directly expose the
To switch the physical library to the read only state, you can use the following steps
The code is as follows
Copy Code
Sql> select status from V$instance;STATUS------------MountedSql> select Database_role from
The earliest discovery of this problem was in the Memetniyaz analysis, if the SQL statement in the database
The code is as follows
Copy Code
SELECT * FROM table name where To_char (' Date field ' in table ', ' yyyy-mm-dd
The default Java in the Debian source is openjdk, and the current version is 7. If you need to install the official Oracle JDK8, you can install the official JDK by using java-package:1. Installation Java-package# Apt-get Install Java-package2.
http://blog.sciencenet.cn/home.php?mod=space&uid=287179&do=blog&id=883429"Legend": "would rather use this life and so you find,..., this life's love story will not change again." ”Next, E.f.codd on the road, there are few flowers, more thorns.1983,
1, numtodsinterval (number, expression)Expression: unit, here the unit is fixed, there is Day,hour,minute,second
12345678
举例说明:-- 当前日期加25天select sysdate, sysdate + numtodsinterval(25, ‘day‘) as res from dual;--
If there is only one return value for the stored function, use the stored procedureStored procedure store functions are subroutines that are stored in the database for all user programs to call. Their difference is whether to return a value with a
First day: 1 Oracle installation A uninstall B install Server Software and database (ORCL)--ORACLESERVICEORCL C Perform network configuration--Configure listening 1521, local net service name (create 1 external connection URLs)--ORACLEHOMETN
Sometimes we want to get the first few records of each group, and this time Oracle's Row_number function is very handy, but unfortunately MySQL doesn't. Online search for some of the implementation methods.Table Flow_task has Phaseno (serial number),
Create a test tableCREATE TABLE T_person (ID VARCHAR2 (+) primary key, name VARCHAR2 ($), address VARCHAR2 (200)); Inserting data into the test tableInsert into T_person (id,name,address) VALUES (Sys_guid (), ' Zhangsan ', ' Beijing '); Insert
With AS syntax– For an aliasWith TMP as (SELECT * from Tb_name)– For multiple aliasesWithTMP as (SELECT * from Tb_name),TMP2 as (SELECT * from Tb_name2),Tmp3 as (SELECT * from Tb_name3),...--It's equivalent to building an e temp table. withE
Suppose want to scan a tabular grid block (loop through all records in detail block) from top to bottom in Oracle form S. You can does this task by Using:system.last_record system variable to determine whether it was last record in a block and
This article is only used for learning communication, commercial use, please support the genuine! Reprint Please specify: http://www.cnblogs.com/mxbs/p/6217052.htmlPreparation: Oracle 10g for Win (32-bit), System environment Win7
I mentioned the basic configuration precautions last time. Now I am starting to develop the oracle database.1. oracle database connectionHowever, if you have installed the oracle client, you have already specified the database server during
Oracle Database startup and shutdown methodsI. Several startup methods:1. startup nomountNon-installation startup. In this mode, you can execute: re-build the control file and re-build the database.Start the instance, that is, start the SGA and
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.