first, start and stop Oracle Stopping and starting Oracle needs to be switched to Oracle users so that no other user has permission to start and stop Oracle (including root and no permissions). 1. Run Sqlplus without logging on to
This chapter exercises the use of that Scott under the EMP table.
First use if/end IF;
If.sqlCREATE OR REPLACE PROCEDURE get_sal (emp_no_in in number) AUTHID Current_useris l_sal number; BEGIN SELECT sal into l_sal from emp WHERE empno
1 because the eight reports of the crosstab are written in SQL , each report corresponds to a SQL statement that has more than one row, and cannot define the view because a parameter must be passed So we took advantage of the stored procedure
Oracle field typeCHAR fixed length string max length bytesVARCHAR2 length of string maximum length 4000 bytes can be indexed up to 749NCHAR the maximum length of a fixed-length string based on the character set bytesNVARCHAR2 the maximum length of
If you want to develop a daily traffic millions, or even tens of millions of levels of access to the Internet platform, performance and security is the first factor to consider. Single from the performance, mainly from the following aspects of
The first palm avoids the action on the columnAny action on a column can result in a full table scan, where the so-called operations include database functions, calculation expressions, and so on, to move the operation to the right of the equation
usage of DatabaseMetaData (rpm ) a . get an instance of this object== Con.getmetadata ();two . Method Gettables usage ofPrototype:ResultSet databasemetadata.gettables (String catalog,string schema,string tablename,string []type]This method can
1. Hardware environmentIBM X3850 X5 Server 4 CPU 10 cores2 Software EnvironmentWindows R2 Enterprise Edition, Oracle 11.2.0.1Today in the customer site to install the Oracle process is smooth, software, monitoring are installed, and finally in the
---1, first check the user's profile in the user password life cycle, in general, the default is 180 days. When logged in, the system prompts ora-28002 that the user is about to expire--If we do not want to change the password, we can modify the
1, Basic SELECT statementSelect *| {[DISTINCT] column|expression [alias],...}from table;Distinct delete duplicate rows2, filtering and sortingThe WHERE clause follows the FROM clauseThe default date format for characters and dates to contain single
oracle11g download page:http://www. Oracle.com/technetwork/database/enterprise-edition/downloads/index.html, find the right database for your system, you need to download file1 and File2, Compressed to the same folder for installation, otherwise it
numtodsinterval (,) , X is a number, C is a string,indicates the unit of X, which shifts the x to the interval day to second data typecommon units are (' Day ', ' hour ', ' minute ', ' second ')Examplesql> Select Sysdate,sysdate+numtodsinterval (3, '
As we all know, this is very pit, especially used in MySQL's Self-increment field settings, the result is not in Oracle. Oh,noI am using the 12c version, it has a new feature, you can set the self-increment sequence, in the creation table is, set
Character Set, National Character Set, and NLS_LANG Runtime Library
-- Unicode encoding scheme-- Three implementation standards: UTF-8, usc-2, UTF-16-- Oracle Database Character Set-- Character set-- National character set-- Character Set main
Oracle Log File LocationOracle log files include warning logs, trace logs, audit logs, redo logs, and archive logs.Warning log: the alert log, which corresponds to the background_dump_dest set in the system initialization parameter file.Trace log:
Create and modify temporary tablespace of oralceA temporary tablespace is a disk space used to store the temporary data generated when you execute the order by lamp statement for sorting or summarizing. By default, all users use temp as the default
[ORACLE] Methods for adding and deleting disk members in an ASM disk
Step 1: Disable the database shutdown immediate
Step 2: Check the mounting diskgroup status of the dg.
SQL> show parameter diskgroup
Alter diskgroup dgdata mount;
Step 3: view the
Space occupied by ORACLE computing tables and space occupied by oracle
In ORACLE databases, how does one calculate the storage space occupied by a table? You can view the space occupied by a table in the System View DBA_SEGMENTS, USER_SEGMETNS,
Oracle merge into usage, oraclemerge
1. Use of merge
Merge is a very useful feature. It is similar to merge into in DB2 and insert into on duplicate key in Mysql. Merge into is a new feature that appears after Oracle 9i. In simple terms, it can be 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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service