Today, when the project starts to access a database, it appearsORA-12505, Tns:listener does not currently know of SID given in Connect Desc.Look back, my database is configured as:Driverclassname=oracle.jdbc.driver.oracledriverurl=jdbc:oracle:thin:@1
In Oracle, sequence is the serial number, which automatically increases each time it is taken. Sequence is not related to tables. 1. Create SequenceFirst, create sequence or create any sequence permissions.Create the following statement: CREATE
A DML lock, also called a data lock, is used to ensure that data is complete when multiuser data is manipulated. DML locks prevent conflicting DML and DDL operations from occurring at the same time.DML locks have row locks,tx and table locks (table
The following is a practical use of the timer in the work, add some comments posted.Simple four steps, you can use the copy directly.--Create a stored procedure create or replace Procedure Pro_nianjia is the Begin update bo_ehr_archive set kxnjxss= (
The machine on which the Oracle database is located changes the IP address and finds that it cannot connect.To solve this problem, you need to modify the corresponding
Oracle Analytic function--listagg Chapter(1) Use Listagg to merge multiple rows of data into one lineExample table:Select from Order by Deptno, enameSuppose there is a requirement that the employee names of the same department in the EMP table be
When the amount of data in the table is increasing, the query data slows down and the performance of the application degrades, so you should consider partitioning the table. After the table is partitioned, the logical table is still a complete table,
1, commonly used functions are divided into five major categories: character functions, numbers and date functions, numeric functions, conversion functions, mixed functions 2. Character functions Character functions are primarily used to modify
For complex where condition combinations, where contains multiple indexed fields, consider the use of if statements to discuss the situation;At the same time, remove unnecessary external parameter conditions, reduce complexity, in order to use
In the Oracle default installation, a Scott user has been created with the default password: Tiger, which has four tables:Employee table (EMP), departmental table (DEPT), Payroll registration form and bonus table. Many of the next operations are
Every time is silly to BASHRC inside write environment variable, feel not wayward. So, after reading this book to understand/etc/oratab this east, refer to the book also wrote a script to set the Oracle environment variable.Create Oraset under/etc/,
1)---The use of cursors with parameters;DeclareCURSOR stock_cur (symbol_in VARCHAR2) isSELECT * from RATE_COMBINE_NR nr WHERE nr.combine_no=symbol_in;Stock_info Stock_cur%rowtype;BeginOPEN stock_cur (' G600000001 '); --Open the cursor;LoopFETCH
Rollup and cube of Oralce advanced SQLIn oracle SQL query, oracle provides some advanced functions to simplify SQL query statements and improve query performance. The following describes the usage and difference of rollup and cube.1. rollupRollup
Database usage-oracle bitmap Index
Currently, a large number of indexes are mainly B * Tree indexes. The index structure stores the rowids of key values and key values, which correspond one to one. Bitmap indexes are mainly created for a large
Create your own oracle interpretation plan and oracle interpretation plan
1. Explain the plan
When an explain plan is used to generate an expected execution plan for a query, the output includes the following:
Each table accessed by SQL;
Method
What does cursor mean?
Cursor
I. classification:
Static cursor
Explicit cursor (need to be clearly defined)
Implicit cursor (all dml statements are implicit cursors, and for loop is also implicit cursors)
Ref cursor (try not to use ref cursor. ref
Common oracle languages
In Oracle development, the client sends SQL statements to the server, the server compiles and executes SQL statements, and returns the execution results to the client.
An Oracle SQL statement consists of the following
Oracle deletes all objects (tables, views, triggers, stored procedures, and functions) of the current user)
Incluincludeclaretype name_list is table of VARCHAR2 (40); TYPE type_list is table of VARCHAR2 (20); Tab_name name_list: = name_list (); Tab_
Install the Oracle11g server in LinuxInstallation environment
Linux Server: SuSe10 sp2 64-bit
Oracle Server: Oracle11gR2 64-bitSystem Requirements
Requirements for installing Oracle in Linux
System Requirements
Description
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