Query
The SELECT statement is used to query data from the database. When the SELECT statement is used in PL/SQL, it must be used with the into clause. The return value of the query is assigned to the variable in the into clause, variable
Description of each process
Important processes: SMON, pmon, dbwn, lgwr, ckpt, and arcn
SMON: This process is used for data rediscovery. This process is mainly responsible for inspecting the system and completing the system,Pmon: Used to clear
A ORA-01031 solution appears when using sys users to log in as administrators
1. Start the database with a local system user and view the configuration parameters by name.
Show parameter Password
Check the exclusive parameter status. If
SelectT2.username, t2.sid, t2.serial #, t2.logon _ timeFromV $ locked_object T1,V $ session T2WhereT1.session _ id = t2.sidOrder by t2.logon _ time
Alter system kill session 'sid, serial #'
SelectT2.username, t1. OS _ user_nameFromV $
Today, I developed a small Oracle Database operating system with C #.ProgramIt runs well on the local machine and runs on the machine of a colleague,
The program automatically exits, and no error is reported. After checking that the. NET Framework
1. Software Download:
Address: http://www.oracle.com/technetwork/cn/database/10203vista-088351-zhs.html
An Oracle account is required for downloading. If you have not registered one, you can.
2. software installation:
1) open the file "\ stage \
1. Import the required jar packages, find ojdbc14.jar and nls_charset12.jar in \ JDBC \ Lib of the Oracle client installation directory, and add these two jar packages to the project.
(A simple method is to create a new directory libs in the project,
1. The oracleorahome92tnslistener service is not displayed in the computer> Management> service, but the service has started 2, C:/> LSNRCTL start, and an open service error is reported. Then you can view the oracleorahome92tnslistener service in
I. Data Control Statement (DML)
1. insert (insert the record statement into the data table)
Insert into Table Name (field name 1, field name 2 ,......) Values (value 1, value 2 ,......);Insert into Table Name (field name 1, field name 2 ,......)
Package definition:
Create or replace package mytest
Is
Type out_cur is ref cursor;
Procedure writecount (codeid in nvarchar2 );
Procedure testsandyinsert (codeid in nvarchar2, counts out number );
End mytest;
Definition of stored procedure:Create
When RAC or ASM is used in Oracle 1gr2 or later versions, Oracle clusterware automatically starts and stops Oracle database instances. Therefore, the following process is not required. For other cases, you can use the method described below.
◆ Su
Importing and exporting Oracle Data imp/exp is equivalent to restoring and backing up ORACLE data. The exp command can export data from the remote database server to the local DMP file, and the IMP command can import the DMP file from the local to
1. Use show parametercontrol_filesView the control_file path.
$ Oracle_base/oradata/orcl/Path, where the orcl value is instance_name.
2. You do not need to use control_file when the database is started to the nomount State (in this case, you only
1. I was so scared to death that I accidentally deleted all the database tables in the development database. The result shows that the following statement is restored to data 1 hour ago! Very simple.
Note: Use the Administrator to log on to the
How to Get to_date in milliseconds?
Since the date type in Oracle only supports to seconds and does not support to milliseconds, to_date () cannot be retrieved to milliseconds.If you want to get the data in milliseconds, you can use the timestamp
/**** @ Param stname: do not create a sequence table. Separate multiple tables with commas (,).**/Create or replace procedure proc_create_seq_trig (stname in varchar2)AsStrsql varchar2 (4000 );Tablename varchar2 (50 );PID varchar2 (50 );Pidtype
1.
DeclareCursor T1 is select * From tablename;BeginFor REC in T1 LoopUpdate tablename t set T. Detail = Rec. jieshao where T. objectid = Rec. objid;End loop;End;
2.
Update student set (name, ID) =(Select name, ID from (select student. rowid Rd,
Document directory
Supplement: Let's take a brief look at the Oracle parameter types.
We are all familiar with the recycle bin in windows. You can restore the deleted files to the recycle bin. the Oracle recycle bin works exactly the same, but
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.