--Create a test tableCreate or Replace TableStudent (XH Number(4),--School NumberXmvarchar2(Ten),--nameSexChar(2),--SexBirthday date,--DateSal Number(7,2)--Scholarships);--Add a fieldAlter TableStudentAdd(StudentID Number(Ten));--Add multiple
All knowledge is better than DEMO,SOThe test table required by the demo CREATE TABLE" SCOTT". " TEST "(" ID " Number(6,0) not NULLENABLE, "USERNAME"VARCHAR2( -BYTE), "Userpwd"VARCHAR2( -BYTE), "New_email"VARCHAR2( -BYTE), "RegDate" DATEDEFAULT NULL,
Grammar:Create or Replace as SELECT * from QueryTable[s]Instance:Create or Replace ViewVm_wo asSelect '2' asSources,wo_nbr,wo_lot,wo_cust,wo_part,wo_rel_date,wo_due_date,wo_qty_ord,wo_status,wo_line,wo_so_nbr,wo_so
The functions previously described in Oracle are string processing, date functions, mathematical functions, conversion functions, and so on, and a class of functions are general functions. Mainly: NVL,NVL2,NULLIF,COALESCE, these functions can be
Original address: https://www.cnblogs.com/linjiqin/archive/2013/06/24/3152667.htmlWith 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
1. The database does not start the error "Ora-12162:tns:net service name is incorrectly specified" workaround.See if you have the Echo $ORACLE _sidNo, export ORACLE_SID=ORCL.Re-execute Sqlplus/as sysdbaExecute startup to start OracleLink to the
First, the phenomenon of database deadlockDuring the execution of the program, click OK or save button, the program is not responding, there is no error.Second, the principle of deadlockWhen you perform an update or delete operation on a column of a
Differences in grammar1, Oracle does not have offet,limit keyword , so in Oracle to be paged, to be replaced by rownum.2, when the Oracle builds the table, does not have the auto_increment, all wants to let the table's primary key increment, wants
1. Perform a table rebuild command ALTER TABLE table_name MOVE (verify that it is not a row, does not lower the watermark, but can release the tablespace)When you create an object such as a table, whether or not you insert the data, it takes up some
The following three query results can be queried with the change in memory parameter settings changes in performance, the Oracle database memory settings have some suggestions and guidance role.Select T.sga_size,t.estd_db_time_factor from
Oracle Notes (15) Database backupThe backup operation of the database is one of the most important tasks in running the entire project.I. Export and import of dataThe export and import of data is for a user's backup operation, which can be done as
Solve the query error caused by data duplication and the data duplication query error.
In development, query errors are often reported due to multiple data entries. The following method solves this problem with one click.
1. query the number of
Oracle basics-synonyms, oracle basics Synonyms1. What is synonym
Synonyms are aliases of objects first. They are used to simplify SQL statements, hide object names and owners, and provide public access to objects. There are two types of synonyms:
Oracle query OVER (partition by...) usage, oraclepartition
All examples are created under Scott, an Oracle user.
Note: The Red order by in the title indicates that order by must be included when this method is used.
1. rank ()/dense_rank () over
Oracle synonym, oraclesynonym
Synonym:
For another data object, the synonym is an alias that depends on the target object. If the target object is changed or deleted, the synonym becomes invalid.
Synonyms cannot replace the privileges of database
Sample Code of spring JDBC Batch Data Processing and spring JDBC code
Parameters:
List paramMaps = new ArrayList();for(int i = 0; i
Method:
Public void saveSpringJDBC (Map [] paramMap) throws Exception {NamedParameterJdbcTemplate
Backup recovery case in rman and rman backup recovery case
Backup
RMAN> show all;
RMAN> configure controlfile autobackup on; Set automatic backup of Control Files
RMAN> backup database format = '/home/oracle/myrman/prod _ % s. Bak' filesperset
20171000011301_about rman1_faq .txt, 20171130 rman
Please refer to 1130.pdf about rman FAQ. txt-- // The previous test is too messy and some rman as copy tests are re-performed.1. Environment:SCOTT @ book> @ & r/ver1PORT_STRING VERSION BANNER--------
Detailed steps for installing the Oracle 11g Server
Oracle 11g is the latest database software released. Oracle 11g has more than 400 features. After more than 1500 hours of testing, the development workload reaches 36 thousand people/month, it is
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