Once again, Oracle is so beautiful that glogin.sqlWhen we first came into contact with Oracle, I sometimes landed in a production environment. The following conditions are often present:[Email protected] app]$ Sqlplus/as SYSDBASql*plus:release 11.2.0
First check whether to turn on the flashback:sql> select flashback_on from V$database; flashback_on------------------No two if you have already turned on the flashback, you do not need to perform the following operation. Cd/u01mkdir Flashback
To create a database table, add a comment method:Create Table Warningrecord ( varcharprimarykeynotnull oncolumnis' alarm number ';Now you want to execute it through a PL/SQL statement block, the following code:DeclareTableexist Number;begin
From the network:Listener Control Monitoring ControlsSince you typed lsnrctl enter, you enter into the monitoring control interface.Make sure to check the status of the Oracle listener using the LSNRCTL status command before starting, shutting down,
Write in front:Oracle uses the default tablespace when creating users, which is generally not recommended because the size of the default tablespace is fixed, and if all users we create use the default tablespace, it can result in insufficient
Write in front:Oracle uses the default tablespace when creating users, which is generally not recommended because the size of the default tablespace is fixed, and if all users we create use the default tablespace, it can result in insufficient
--1, selecting employees in Department 30SELECT * from Empwhere deptno=30; --2, List all clerks ' names, numbers and departments Selectename,empno,dname from EMP Einner joins dept d on e.deptno = D.deptno wherejob=upper (' clerk '); --3, finding
--1, List all departments that have at least one employeeSELECT DISTINCT dname from dept where Deptno in (select DISTINCT deptno from EMP); --2, List all employees with more than "SMITH" salarySelect Ename,sal from emp where sal> (the Select Sal
-If there is an update, the insertion is implemented with a statement that does not existDROP TABLE t_mg;CREATE TABLE t_mg (Code VARCHAR2 (Ten), NAME VARCHAR2 (10));SELECT * from T_MG;MERGE into T_MG aUSING (SELECT ' The Code ' code, ' the name '
This article records the installation of the robot framework connection to an Oracle database1. Basic EnvironmentFirst of all, the basic environment of Robotframework +databaselibrary environment to be ready, the two environments are set up in the
Http://www.blogjava.net/decode360/archive/2008/10/16/286802.htmlCreate or replace type Person as Object (Name VARCHAR2 (10),Sex VARCHAR2 (2),Birthday date,Age Number (2));Two ways to create object tablesFirstCREATE TABLE T (Person_col person,emp_id
Static Connection getconnectionnew () { Connection con = null; Configer Configer = new Configer (New File ("Conf.ini")); ////debug=0: Publish tomcat mode, normal customer used mode ////debug=1: Develop debug mode, do not send network command, call
Oracle Delete log filesThe syntax for deleting log files is as follows:ALTER DATABASE drop logfile member logfile_name;Deleting log files requires attention such as the following:1. The log file group where the log file resides cannot be in the
FunctionA function is similar to a stored procedure and is also a named Pl-sql block stored in a database. The main feature of a function is that it must have a return value. The return type of the function is specified by return. Anywhere in the
1, forget sys passwordOpen the CMD Command window and do the following:1,sqlplus/nolog;2,3,connect/as sysdba4,5,alter User SYS identified by new password 6,7,alter user SYSTEM identified by new password 8,The second method:Rebuilding the password
Oracle Login ora-01033:oracle is initializing or shutting down the workaround2015-03-16 01:20 | 160511 people reading | sourceOracle Login ora-01033:oracle is initializing or shutting down the workaroundOracle has multiple instancesThe corresponding
Database Shutdown and Startup: SCN = = System change NumberDatabase Startup stepsNomount----> Mount---->open(1) The first stageSql> Startup NomountORACLE instance started.Total System Global area 7148580864 bytesFixed Size 2214216 bytesVariable
Relational model
E-r model
Paradigm
1. Brief description of OracleOracle is a powerful database software developed by 1977 IBM.2. Basic theory of relational data
relational database and database management system
1)
--1 Data Environment PreparationEmp,dept table below for Scott users--2 requirements: The highest average wage department number, department name, department average salarySelect D.deptno,d.dname,e.salFromSelect AVG (SAL) Sal,deptnoFrom EMP EGROUP
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.