/oracle/etc/rc0.d/K01oracle // Shutdown# Ln-s/etc/init. d/oracle/etc/rc6.d/K01oracle // restart
6. Usage# Service oracle start // start oracle# Service oracle stop // close oracle# Service oracle restart // restart oracle
7. Test
A. Auto Start
Last login: Mon Nov 26 19:57:06 2012 from 10.0.0.145[root@ORS ~]# su - oracle[oracle@ORS ~]$ sqlplus "/as sysdba"SQL*Plus: Release 10.2.0.1.0 - Production on Mon Nov 26 20:07:33 2012Copyright (c) 1982, 2005, Oracle. All rights reserved.Connected to:Oracle
Oracle multi-Table query, as its name implies, queries the data you want from multiple tables. Here we will test the emp table and dept table under the scott user. The structure of the two tables is as follows:SQL> select * from dept;DEPTNO DNAME LOC-------------------------------------10 ACCOUNTING NEW YORK20 RESEARCH DALLAS30 SALES CHICAGO40 OPERATIONS BOSTON
SQL> select * from emp;
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO--------------------------------------------------------------------
emp. ename % type;
V_sal emp. sal % type;
V_totalsal emp. sal % type; -- used to save the total salary of all employees in each department
Begin
Open c_dept;
Loop
Fetch c_dept into r_dept;
Exit when c_dept % notfound;
Dbms_output.put_line (r_dept.deptno |':'| R_dept.dname |'++');
V_totalsal: =0;
Open c_emp (r_dept.deptno );
Loop
Fetch c_emp into v_ename, v_sal;
Exit when c_emp % notfound;
Dbms_output.put_line ('V _ ename :'| V_ename |';'|'V _ sal :'| V_sal );
V_tot
// Shutdown# Ln-s/etc/init. d/oracle/etc/rc6.d/K01oracle // restart
6. Usage# Service oracle start // start oracle# Service oracle stop // close oracle# Service oracle restart // restart oracle
7. Test
A. Auto Start
Last login: Mon Nov 26 19:57:06 2012 from 10.0.0.145[root@ORS ~]# su - oracle[oracle@ORS ~]$ sqlplus "/as sysdba"SQL*Plus: Release 10.2.0.1.0 - Production on Mon Nov 26 20:07:33 2012Copyright (c) 1982, 2005, Oracle. All rights reserved.Connected to:Oracle Database 10g Enterprise Edi
website:
Windows Vista and Windows Server 2008 use the IANA suggested ephemeral ports range while the Windows Server 2003 is still using port range of 1250 to 5000.
Ephemeral ports are short-lived port, chosen ad-hoc to serve. In most implementations, they usually only add the port numbers by one until get exhausted on port numbers.
May be this is just my silly thought of me, but it seems like they implemented like this pseudo-code:
[Sourcecod
content:
SQL> show recyclebin;ORIGINAL NAME RECYCLEBIN NAME OBJECT TYPE DROP TIME---------------- ------------------------------ ------------ -------------------EMP2 BIN$yBCF53QgQw+A//Sf3M4i9g==$0 TABLE 2014-10-16:14:16:07
View the deleted table in recyclebin:
SQL> select * from "bin $ ybcf53qgqw + A // sf3m4i9g ===$ 0 "; empno ename job Mgr hiredate Sal comm deptno ---------- --------- ---------- ------------ ---------- 7369 Smith clerk 7902 17-12 month-80 800 Allen salesman 207499 20-2 month-
size, padding adjusted to 0
Double-click the layer to add a gradient.
The parameters are as follows:
Color Mark Position:
#472a2a –0%
#c86464 –77%
#c86464 –100%
Opacity Position:
100%–0%
100%–55%
0%–100%
Group all the shape layers into one, then copy the entire group and merge the groups. Rename to Final
Save the file.
Step 3
New 1250 x 1250 p
);
Set sqlprompt ' gname> '
set termout on
After using the Scott user login, the following
[Oracle@rhel65 ~]$ sqlplus scott/oracle sql*plus:release 11.2.0.1.0 on Sat off Production 00:11:26 Copyright (c) 1982, 2009, Oracle.
All rights reserved. Connected to:oracle Database 11g Enterprise Edition release 11.2.0.1.0-64bit Production with the partitioning, OLAP, Da
Ta Mining and real application testing options Scott@orcl>select * from EMP; EMPNO ename JOB MGR hiredate SAL COMM DEPTNO--
different values are asked for standard deviation
Sql> Select StdDev (sal) from Scott.emp;
StdDev (SAL)
-----------
1182.5032
Sql> Select StdDev (Distinct sal) from Scott.emp;
StdDev (Distinctsal)
-------------------
1229.951
64.VARIANCE (distinct| All)
To find covariance
Sql> Select Variance (sal) from Scott.emp;
Variance (SAL)
-------------
1398313.9
65.GROUP by
Used primarily to count a group of numbers
Sql> Select Deptno,count (*), sum (SAL) from the Scott.emp group by Deptno;
DEPTNO COUN
10. If The Deptno is isn't, then the case statement'll fall through to the ELSE clause, which would return UN Assigned. Note this with a simple case statement, no comparison operators can be used.
Searched case statementsThe searched case statement is the most powerful cousin of the simple case statement. The searched case statement are like a if...then...else structure, and can be used to conditionally search and replace values Using logical operators and multiple conditions. Let ' s look at a
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.